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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(authN) - Add udpated_by for delete operations #417

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

michalkrzyz
Copy link
Collaborator

@michalkrzyz michalkrzyz commented Dec 3, 2024

Description

Add updated_by update for delete operation. This way deleted item can be checked for user who deleted an item (under circumstances that the item was not changed/updated after deletion).
Add possibility to filter through deleted items, active and all (deleted and active). Default is active.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

  • Related Issue # (issue)
  • Closes # (issue)
  • Fixes # (issue)

Remove if not applicable

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

  • 📜 README.md
  • 🤝 Documentation pages updated
  • 🙅 no documentation needed
  • (if applicable) generated OpenAPI docs for CRD changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@michalkrzyz michalkrzyz self-assigned this Dec 3, 2024
@michalkrzyz michalkrzyz force-pushed the mikrzyz/issue-358 branch 3 times, most recently from a544358 to 98e0706 Compare December 5, 2024 20:35
@michalkrzyz michalkrzyz force-pushed the mikrzyz/issue-358 branch 2 times, most recently from cfb4e85 to 554ae9e Compare December 10, 2024 20:25
@michalkrzyz michalkrzyz force-pushed the mikrzyz/issue-358 branch 2 times, most recently from 1f5b22b to e4c14f7 Compare December 11, 2024 12:27
@michalkrzyz michalkrzyz marked this pull request as ready for review December 11, 2024 14:36
type StateFilterType int

const (
Active StateFilterType = 0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@reviewers - wouldn't it be better to use string value instead of int for that? Please help me with your opinion.

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.

1 participant