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

Handle existing Boefje name #3573

Merged
merged 181 commits into from
Oct 2, 2024
Merged

Conversation

madelondohmen
Copy link
Contributor

@madelondohmen madelondohmen commented Sep 23, 2024

Changes

This PR handles the exception (in the form) that occurs when a user tries to create/edit a Boefje with a name that already exists.

Followup of #3521

  • Adds an error message to the name field (lay-out of error message will be fixed in Fixes notification alignment #3522)
  • Optimizes the code
  • AddBoefjeVariantView now redirects to the new plugin_id (instead of the "original" boefje id.

Issue link

Closes #3566
Closes #3586

Demo

afbeelding

QA notes

Please add some information for QA on how to test the newly created code.


Code Checklist

  • All the commits in this PR are properly PGP-signed and verified.
  • This PR only contains functionality relevant to the issue.
  • I have written unit tests for the changes or fixes I made. // No new tests needed
  • I have checked the documentation and made changes where necessary.
  • I have performed a self-review of my code and refactored it to the best of my abilities.
  • Tickets have been created for newly discovered issues.
  • For any non-trivial functionality, I have added integration and/or end-to-end tests.
  • I have informed others of any required .env changes files if required and changed the .env-dist accordingly.
  • I have included comments in the code to elaborate on what is not self-evident from the code itself, including references to issues and discussions online, or implicit behavior of an interface.

Checklist for code reviewers:

Copy-paste the checklist from the docs/source/templates folder into your comment.


Checklist for QA:

Copy-paste the checklist from the docs/source/templates folder into your comment.

rocky/katalogus/client.py Outdated Show resolved Hide resolved
@underdarknl underdarknl merged commit bfafef8 into main Oct 2, 2024
14 of 15 checks passed
@underdarknl underdarknl deleted the feature/handle-existing-plugin-name branch October 2, 2024 13:53
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.

Editting an "out of the box" plugin/boefje results in a 404 error Error handling for duplicate Boefje name
6 participants