Closed einhverfr closed 8 years ago
My proposed solution and I am happy to take it on after the printing 0 amounts on checks issue....
This would allow this to remain as a hard failure would affect only to our own functions, and would ensure that those running from vcs are fully protected. Thoughts?
Both have pros & cons and would need maintenance but after a bit of thinking, blacklisting is probably better.
If we keep the whitelist, then I'd agree with your previous suggestion to make it a permanent table and I would add a mecanism for the administrator to white list his. We already have something similar to make sure that invoices are uniquely numbered when migrating. But then, we have the risk that someone uses it to white list a forgotten one of ours and that it fails downstream much later. This was what we were trying tp prevent.
Going to a black list seems easier and a suitable mean will have to be implement to find our functions and enlist them. That should not be a hard task though.
System.sql had some Perl functions whitelisted, we will have to revise the original test.
Your suggestions and help are always welcomed.
Thanks! I will probably work on this tomorrow. Will try to make sure that test failures are informative to new developers also.
Ok so a few pieces to this
First part is now done in my branch.
makefile now added. Next for tests
Plan for test is to take the sha1 of the file then re-run the blacklist building then compare the sha1 again if they are different we fail.
I am not sure how this works with OSX.....
ok so planning instead in both cases to chomp lines and concat.
Via email
OK, now I hit another problem.
setup.pl gave this error,
psql:sql/modules/Duplicates_Functions.sql:33: ERROR: Duplicate functions found: (public,gpr_consistent,boolean,"internal, prefix_range, smallint, oid") at /home/jasonic/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/PGObject/Util/DBAdmin.pm line 265.
which turns out to be because Duplicates_Functions.sql doesn't know about multimethods. I have a couple, related to some other stuff in the database, and it returned as a happy camper.
so I disabled that function in the LOADORDERS file.
This is going to be a viciously difficult problem to solve in its current form and banning all extra extensions is likely to cause more problems than it is worth.
Ideas:
I do think this is blocking though