Added specs#8
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 42a41ed288
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| def list_courses(id, params = {}) | ||
| path = entity_name(id) + "/courses" | ||
| params[:custom_path] = '/courses' |
There was a problem hiding this comment.
Avoid persisting bundle custom_path between API calls
list_courses now mutates and stores params[:custom_path], and CommonOperations#list keeps that hash in @params; later non-list calls (for example create_enrollment/update_enrollment) still read @params via Base#entity_name, so their paths can become /bundles/:id/courses/... instead of /bundles/:id/... when a list call happened earlier in the same process. This introduces order-dependent endpoint corruption for bundle operations.
Useful? React with 👍 / 👎.
No description provided.