-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current continuous integration fails to detect differences in value lists #288
Comments
@elemoine @lbartoletti @tudorbarascu @3nids @marioba @ponceta Any opinion on that? |
Hi @haubourg, In qwat, you create value lists such as Would you like that PUM is able to show the difference also on the content? E.g. when a value is added to |
@marioba Hi Mario, yes the actual lack is content checking. We have add one PR changing core value list and adding deltas that lead to different contents in migration process but Travis didn't catch the difference. |
Hi @marioba. Yep, seconding what Régis said. Value-lists tables belong more to the structure of the database, rather than its content. So the idea would be to extend Pum to make it possible to pass pum check (and pum test-and-upgrade) a list of tables whose contents should be checked. I think that would make sense to add this to Pum, and I'd be happy to do it :) |
Hi @elemoine, yes, I think it's a good idea. |
The distinction in qwat for custom VL should be that id > 10'000. |
Work in #qwat/qwat-data-model#268 (comment) shows that if a delta files loads value lists but is not inlined with generation scripts, Travis fails to catch those differences.
The check is done by PUM which only check database structure (tables, views, functions, triggers, constraints, etc) but not value list.
In QWAT, we can consider that some value lists are part of the core and should be controlled by continuous integration.
However, local customisation and extensions can add value lists, so we need to handle this case.
We could add a type field to value lists to track their origin (custom, core, extension) and check only core and extensions in Travis.
This could be done in the sh wrapper files, or maybe pushed upstream in PUM.
The text was updated successfully, but these errors were encountered: