Skip to content

Conversation

@Ang-m4
Copy link
Contributor

@Ang-m4 Ang-m4 commented Nov 27, 2025

Description

This pull request removes the CatalogEmailRegex endpoints completely in order to simplify the API, leveraging the PUT/PATCH methods at the catalog level instead.

Why is this important?

We didn’t really need a full CRUD endpoint just to manage the email regexes assigned to a single catalog.
Now we can handle the creation and deletion of a catalog’s email regexes through the serializer update() function.

I also restricted the manager edit access to only the required attributes, as specified.

How to test

  • Send a PUT or PATCH request to /manage/catalogs/<id>/ adding or removing email regex entries.
    You should see the updated list of email regexes reflected in the response.
  • As a manager, try to edit one of the restricted catalog fields (for example name or user_limit).
    A validation error should be thrown and the change should be rejected.

@Ang-m4 Ang-m4 requested a review from Alec4r November 27, 2025 21:58
@Ang-m4 Ang-m4 force-pushed the afg/learner-views branch from 8ea0be2 to 3afdd6b Compare December 2, 2025 15:37
@Ang-m4 Ang-m4 changed the base branch from afg/learner-views to main.v2 December 2, 2025 15:48
@Ang-m4 Ang-m4 force-pushed the afg/email-regex-api-simplification branch from 6c5a376 to c27f474 Compare December 2, 2025 15:48
@Ang-m4 Ang-m4 merged commit f8de7b8 into main.v2 Dec 2, 2025
4 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