openedx / openedx/frontend-app-authoring
Users who attempt to create courses without access rights should get an error message
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 17
- Forks
- 218
- Avg merge
- 9d 20h
- Merged PRs (30d)
- 20
Description
Unprivileged users who attempt to create a course fail to do so (rightly) and no error message is displayed (and that is the actual issue).
How to reproduce:
- Sign up/login as unprivileged user
- Go to the studio and attempt to create a course
- Click "Create": nothing happens.
In the background, a POST http:///course request is made, with a 403 response. But that error is not caught in the frontend and no error message is displayed.
Instead, there should be an error message that basically says "You are not allowed to create a new course within this organization".
This issue was described here: https://discuss.openedx.org/t/sandbox-studio-does-not-create-course/14010/6
Here's a screencast that highlights the issue: https://drive.google.com/file/d/1hUQfxV4BvPZy8kwhF10ITpXTm91yLze1/view?usp=sharing
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the course-creation flow in Studio as an unprivileged user and inspect the frontend handling of the POST /course request that returns 403. Done means the failed request is caught and the user sees an error explaining that they are not allowed to create a course in the organization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100