Closed albu-diku closed 3 months ago
Hmm, so far so good but testing some more it turns out there's one important part missing - namely support for the space-separated list of archive types to permanently freeze, which is what we need in production:
--permanent_freeze="freeze backup"
That is, it's actually not a boolean option but just a plain string passed as-is and handled in the configuration - I should have explained that of course :-s
Anyway, it's not too complicated to address now, so I'll just open a new PR doing that.
Hmm, so far so good but testing some more it turns out there's one important part missing - namely support for the space-separated list of archive types to permanently freeze, which is what we need in production:
--permanent_freeze="freeze backup"
That is, it's actually not a boolean option but just a plain string passed as-is and handled in the configuration - I should have explained that of course :-s Anyway, it's not too complicated to address now, so I'll just open a new PR doing that.
So, this was one of the cases that I'd intended to be handled - I think what it highlights is that I missed adding a test for that case. I know how this happened, I added the test cases for the actual argument processor late in the game and it slipped by me to explicitly test this. As a side note it also highlights the handling of that argument is a little messy and does not "just work" the way it ought to, but dealing with that is for another day. At any rate apols for missing this.
Yes, it's very easy to start something and then forget about it while juggling other issues. I know because I did just that thinking about testing the space-separated string case before merging, but then forgot about it again and ended up needing the a follow-up PR109 :see_no_evil: :sweat_smile:
Agreed that the generator and the argument handling is not in the greatest shape after massive 'organic' growth. A rethinking/reworking of it is welcome.
Agreed that the generator and the argument handling is not in the greatest shape after massive 'organic' growth. A rethinking/reworking of it is welcome.
The direction I thought to head on that front is roughly here in draft form: https://github.com/ucphhpc/migrid-sync/pull/99
Manually merged through svn.