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: enroll and unenroll process with new and old endpoints #44

Merged
merged 12 commits into from
Oct 12, 2023

Conversation

julianramirez2
Copy link
Contributor

@julianramirez2 julianramirez2 commented Oct 9, 2023

Description

A dynamic approach is implemented between the new endpoints for enrollments and unenrollments and the 'legacy' endpoints that have been functioning currently. The goal is to foster versatility across platforms, allowing both new and existing systems to seamlessly utilize these changes. This transition ensures a progressive and secure adoption of the new implementations across various platforms.

To achieve this, an attempt is made to execute processes using the new endpoints. In case of failure, a fallback to the 'legacy' endpoints is initiated. If the response is positive in the first attempt, the response is returned directly.

Additionally, a minor issue has been addressed where error messages from the API were not displayed as-is but were briefly processed, resulting in limited visibility of the actual error feedback.

Testing instructions

Go to the stage and create or update enrollments, you can also try the enrollment allowed process. The new features have already been uploaded to the stage.

Additional information

The default answer for an unenrollment with enrollment__allowed is "[]". A custom message for it was implemented to give enough feedback to the user to know if the process response was good. The message is "User unenrolled successfully".

@julianramirez2
Copy link
Contributor Author

@MaferMazu @andres-arango-aptitude can you check this, please?

Copy link
Contributor

@MaferMazu MaferMazu left a comment

Choose a reason for hiding this comment

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

This looks good, thanks :D

@julianramirez2 julianramirez2 merged commit 85d69b0 into main Oct 12, 2023
3 checks passed
@felipemontoya felipemontoya deleted the new-api-process branch March 21, 2024 17:32
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