fix: Respect server side config for autodiscover#5849
fix: Respect server side config for autodiscover#5849lukemassa merged 9 commits intorunatlantis:mainfrom
Conversation
Signed-off-by: Luke Massa <lmassa@Lukes-MacBook-Air.local>
Signed-off-by: Luke Massa <lmassa@Lukes-MacBook-Air.local>
|
One thing I'm not 100% sure on here, is that the logic I wrote means that if the repo sets autodiscover to enabled but does not specify ignore paths, but the global does specify ignore paths, we act as if no ignore paths are specified. Is this correct, or should I be merging more surgically? |
that will be very confusing.C |
|
Works for me! |
Signed-off-by: Luke Massa <lmassa@Lukes-MacBook-Air.local>
cf00153 to
2f39af2
Compare
Signed-off-by: Luke Massa <lmassa@Lukes-MacBook-Air.local>
|
OK updated to prefer global and only look at repoCfg if global is absent. I also updated the tests and documentation to clarify. |
b28c96a to
7a82bc3
Compare
|
To get this to work I had to remove a unit test from |
Signed-off-by: Luke Massa <lmassa@Lukes-MacBook-Air.local> Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com> Co-authored-by: Luke Massa <lmassa@Lukes-MacBook-Air.local> Signed-off-by: Ramon Vermeulen <ramonvermeulen98@gmail.com>
Signed-off-by: Luke Massa <lmassa@Lukes-MacBook-Air.local> Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com> Co-authored-by: Luke Massa <lmassa@Lukes-MacBook-Air.local> Signed-off-by: dimisjim <dimitris.moraitidis@gmail.com>
what
Respect server side config for autodiscover
why
This was a bug in the original implementation #5267 pointed out in #5772. We were only respecting AutoDiscover settings when set in the repoCfg (i.e., per repo atlantis.yaml), not in the globalCfg (i.e., server side config).
tests
I added some new unit tests, one of which would fail on main, which demonstrates the issue.
references
closes: #5772