Skip to content

Do not add entities that are marked as delete#669

Open
KrystianOcado wants to merge 2 commits intogitlabform:mainfrom
KrystianOcado:kk-do-nothing-if-entity-marked-as-delete
Open

Do not add entities that are marked as delete#669
KrystianOcado wants to merge 2 commits intogitlabform:mainfrom
KrystianOcado:kk-do-nothing-if-entity-marked-as-delete

Conversation

@KrystianOcado
Copy link
Copy Markdown
Contributor

Hi!

Current version of gitlabform tries to add entities (e.g. variables) that are present only in config, even if they are marked as delete.

This means, that on first run, gitlabform will delete entity "foo" and on the next run it will try to add it again.

This should fix this issue.

@KrystianOcado KrystianOcado had a problem deploying to Integrate Pull Request January 17, 2024 12:43 — with GitHub Actions Failure
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 17, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.74%. Comparing base (70c008f) to head (2f91268).
⚠️ Report is 507 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #669      +/-   ##
==========================================
+ Coverage   82.54%   82.74%   +0.20%     
==========================================
  Files          74       74              
  Lines        2904     2904              
==========================================
+ Hits         2397     2403       +6     
+ Misses        507      501       -6     
Files with missing lines Coverage Δ
...tlabform/processors/multiple_entities_processor.py 96.20% <100.00%> (ø)

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@amimas
Copy link
Copy Markdown
Collaborator

amimas commented Jan 17, 2024

Hi. Thanks for this PR. Is there an existing open issue for it? Could you please reference it or create a new issue? I didn't completely follow the problem you mentioned. Also it seems the acceptance tests are failing.

@amimas
Copy link
Copy Markdown
Collaborator

amimas commented Feb 10, 2024

Hi @KrystianOcado - Did you get a chance to look into what I mentioned previously ☝️ ?

@KrystianOcado
Copy link
Copy Markdown
Contributor Author

Hi @amimas !

Sorry about the delay, I've added an issue here: #684

Please let me know if you need more info.

@gdubicki gdubicki force-pushed the kk-do-nothing-if-entity-marked-as-delete branch from a17ee88 to ce61969 Compare March 22, 2024 10:56
@gdubicki gdubicki had a problem deploying to Integrate Pull Request March 22, 2024 10:56 — with GitHub Actions Failure
@gdubicki gdubicki had a problem deploying to Integrate Pull Request March 30, 2024 19:41 — with GitHub Actions Failure
@gdubicki gdubicki force-pushed the kk-do-nothing-if-entity-marked-as-delete branch from befeafd to f5d9d4a Compare May 5, 2024 12:32
@gdubicki gdubicki had a problem deploying to Integrate Pull Request May 5, 2024 12:33 — with GitHub Actions Failure
@gdubicki
Copy link
Copy Markdown
Member

gdubicki commented May 5, 2024

Hey @KrystianOcado! We would love to get your contribution merged, but the tests need to pass first. Can you find the time to revisit this PR and fix them please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants