Comments (6)
Hi @Dridge !
gitlabform just goes through each service defined in this config sections and makes PUT requests to GitLab API. So both password change and commit events change flag flip should work.
But I have checked that and it seems that there is a bug in GitLab API that makes those PUT requests not work, at least for JIRA service.
We could try a workaround of deleting and recreating services with API on each gitlabform run but I am afaid of the side effects (and a bit about performance). I have quickly tried making a diff between current and target service config (or, to be precise, a check for target config being subset of the current config) to check if a PUT request is needed but for example for Jira service the GitLab API does not return password in response (which make sense, of course) what makes this diffing ineffective. Maybe we should make this "always recreate services" a default off feature (or rather a workaround)?
from gitlabform.
Maybe we should make this "always recreate services" a default off feature
This sounds reasonable to me, and the only way to get around the gitlab api bug.
from gitlabform.
My new integrations tests (see link above) confirm that there is this problem, most probably with all services (I tested using the first one alphabetically, asana
).
from gitlabform.
I noted in https://gitlab.com/gitlab-org/gitlab/-/issues/202216 that the password
field is not being updated too.
from gitlabform.
I have just released v1.13.4 with the "recreate" flag mentioned a few comments above.
See this example config section for info how to use it: https://github.com/egnyte/gitlabform/blob/master/config.yml#L179-L183
Please let me know if this helps, @Dridge .
from gitlabform.
Thanks to Vincent Bisserié's help (if you are reading this - thank you!) I fixed the root cause and released v1.13.5 where this issue should be completely resolved without any workarounds.
Please reopen this issue if it does not help you, @Dridge .
from gitlabform.
Related Issues (20)
- Merge request approvals settings of group HOT 4
- Feature Flags support HOT 5
- Add retry feature HOT 2
- CI/CD settings: Whitelist project for Token Access HOT 1
- merge_requests_approval_rules does not respect protected_branches and breaks execution HOT 8
- [backward incompatible] Add ENTRYPOINT to the Dockerfile HOT 1
- Project transfer failing with --noop
- Error when output file flag is used with dry-run project transfer
- Add your company logo and link to the users list!
- Processing group fails if it has more than 20 members
- Add support for adding a single deploy key to multiple projects in a namespace/group as a non-administrator HOT 3
- Add 'enforce' support for integrations config HOT 3
- Drop python < 3.12 HOT 3
- KNOWN ISSUE: 3.11.0 has not been deployed to GitHub Packages (container registry) HOT 1
- GitLab 17.0 Issues HOT 1
- Incorrect order of gitlab API call for`members`, `merge_requests_approval_rules`, `branches` provided for a project HOT 4
- Project members setting ignores case
- Within the documentation site, the configuration link to "Group SAML links" page is missing on the left panel
- Migrate to hosting on GitLab HOT 5
- Unclear error message when user is removed: Warning: Branch 'develop' not found when trying to set it as protected/unprotected!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlabform.