Skip to content

Delete rules when site or deployment is deleted #8939

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

Merged
merged 6 commits into from
Jan 17, 2025

Conversation

vermakhushboo
Copy link
Member

What does this PR do?

Delete rules, deployments, builds, variables etc when deleting a site.
Delete rule when deleting a deployment.

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

Copy link

github-actions bot commented Nov 6, 2024

✨ Benchmark results

  • Requests per second: 1,030
  • Requests with 200 status code: 185,389
  • P99 latency: 0.097500888

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,030 1,680
200 185,389 302,517
P99 0.097500888 0.070218354

}

/**
* @depends testCreateSite
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets rewrite tests in this file to have no dependencies.
If you need to list, or get, or delete, inside the test you can make new site.

this way we prevent need to use @Depends

Copy link
Member Author

Choose a reason for hiding this comment

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

In that case, we'd also need to delete the resources we create in each test at the end of it so that it doesn't cause conflicts with other tests.
For example, while testing listSites, if I am creating sites for it inside the test itself, it should not list sites from other tests. Do you agree each test should also perform cleanup then?

Copy link

github-actions bot commented Jan 9, 2025

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
pyc 3.12.7-r0 CVE-2024-12254 HIGH
python3 3.12.7-r0 CVE-2024-12254 HIGH
python3-pyc 3.12.7-r0 CVE-2024-12254 HIGH
python3-pycache-pyc0 3.12.7-r0 CVE-2024-12254 HIGH
golang.org/x/crypto v0.26.0 CVE-2024-45337 CRITICAL
golang.org/x/net v0.28.0 CVE-2024-45338 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

@vermakhushboo vermakhushboo merged commit 04f9e9b into feat-sites Jan 17, 2025
19 of 25 checks passed
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy