Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

API V3: clean version when deactivated and build version when activated #10308

Merged
merged 11 commits into from
May 22, 2023

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented May 9, 2023

This matches what we do in our version form.

Closes #10221.


馃摎 Documentation previews 馃摎

@stsewd stsewd requested review from a team as code owners May 9, 2023 00:33
@stsewd stsewd requested a review from benjaoming May 9, 2023 00:33
Copy link
Contributor

@benjaoming benjaoming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done!

if not was_active and version.active:
trigger_build(project=version.project, version=version)
# Purge the cache from the CDN.
version_changed.send(sender=self.__class__, version=version)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems like an additional bug fix in the mix 馃憤

docs/user/api/v3.rst Show resolved Hide resolved
stsewd and others added 3 commits May 16, 2023 13:40
@stsewd stsewd requested a review from a team as a code owner May 17, 2023 17:24
@stsewd stsewd requested review from agjohnson and removed request for a team and agjohnson May 17, 2023 17:24
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't review it deeply because it was approved already. However, I checked the "shared logic" which was what I asked for and it's 馃憤馃徏 . Thanks.

@stsewd stsewd merged commit 040c787 into main May 22, 2023
2 checks passed
@stsewd stsewd deleted the clean-build-version-apiv3 branch May 22, 2023 16:02
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.

API: clean resources when a version is deactivated via the API
3 participants