-
Notifications
You must be signed in to change notification settings - Fork 113
Add protected environments processor #423
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
Add protected environments processor #423
Conversation
gdubicki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @zanella! Thanks for the PR! I added some comments. We can try jumping on our Slack if you prefer to chat about it. Let me know!
Yeah, sounds good, do you need to generate an invite link for that ? |
https://join.slack.com/t/gitlabform/shared_invite/zt-1i5h4dds0-NO4x63W5_GWL~WWrWy9DQg |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #423 +/- ##
=======================================
Coverage 85.36% 85.37%
=======================================
Files 60 62 +2
Lines 2228 2291 +63
=======================================
+ Hits 1902 1956 +54
- Misses 326 335 +9
|
|
What will the config syntax be for protected environments when this is merged? |
|
e8a5d39 to
1f70307
Compare
1f70307 to
50b0ff6
Compare
50b0ff6 to
02b634d
Compare
60a3238 to
406c936
Compare
14721e2 to
4eddd2e
Compare
cc1fe31 to
868ca72
Compare
35c834a to
9577d5f
Compare
|
Final is not compatible with Python 3.7, @zanella... |
9577d5f to
808d42d
Compare
808d42d to
c3b3b5f
Compare
|
I did a fix (there would be a missing link to the new article in the docs' index) and some updates to the docs and now I think we are good to go. Thank you for all the work on this feature, @zanella! |
|
This code has been pre-released in v3.3.0rc1. Please feel free to check it out before a final release with this that should come within a few days. |
|
I'm away from work next few weeks. So I can't test it out at the moment but really looking forward to it. Do we want visit the config syntax before this feature is released out of RC? There's a redundant key name, which is treated as a label instead of the actual name of the env. Also the parent config, |
Yes, on second thought it would be nice for this to be cleaned. We could do this relatively easy with a config transformation where: protected_branches:
foo:
(...)...would internally be converted to: protected_branches:
foo:
name: foo
(...)Wdyt, @zanella?
I think you are right. It would be better to rename this to just But until we would also implement #164 it might be disappointing to some users that you cannot really manage all the envs but only protect them. Also it's a bit of a problem with how |
Ahh... I see. Didn't know the current implementation detail about this feature. I think you're right. I would also expect
This made me think perhaps we should have a separate key under |
@gdubicki , sorry for the sloppy code, but I thought it best to ask for feedback 😬
I left
TODOcomments on things I was not sure about or where you'll probably have a better idea on how to solve the issue I face.I tested it against a live Gitlab installation, it works, I'll look into writing the tests next.