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: add edit and delete middlewares #529

Merged
merged 4 commits into from
Feb 3, 2025
Merged

Conversation

foyarash
Copy link
Collaborator

Title

Add edit and delete middlewares

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Example update
  • Refactoring
  • Hotfix
  • Security patch
  • UI/UX improvement

Issue

#527 #528

Description

To give more granularity to the edition and deletion, we now provide a way to do stuff just before Prisma executes the update / delete queries. This gives the ability to interact with a remote CDN for example, where resource associated files can be accordingly added / removed.

@foyarash foyarash requested a review from cregourd January 30, 2025 17:12
Copy link

changeset-bot bot commented Jan 30, 2025

🦋 Changeset detected

Latest commit: 5dbc078

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@premieroctet/next-admin Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

packages/next-admin/src/appHandler.ts Outdated Show resolved Hide resolved
packages/next-admin/src/handlers/resources.ts Outdated Show resolved Hide resolved
packages/next-admin/src/pageHandler.ts Outdated Show resolved Hide resolved
@foyarash foyarash force-pushed the feat/resource-delete-handler branch from 6da4123 to 5dbc078 Compare February 3, 2025 13:19
@foyarash foyarash merged commit f4d1d95 into main Feb 3, 2025
3 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.

2 participants