-
Notifications
You must be signed in to change notification settings - Fork 92
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
Give components "friendly" slugs on creation #1384
Comments
@jmakowski1123 New story, but based on things we've discussed - please review. |
@bradenmacdonald
|
@rpenido Since we didn't get this into Sumac, I don't think it's a huge priority anymore. It probably makes more sense to refactor the editors in the MFE so that they can be opened without having a block ID, and they only create the block once you save changes. Then we can set the slug on the initial save and it will avoid all the problems you've mentioned. |
CC @ormsbee ^ |
@bradenmacdonald Should we close this issue and make it part of #1482's scope, or should we just have it as a dependency? |
I think we should just have #1482 as a dependency. |
Context
Currently, library components get a UUID as the unique part of their usage key, and this makes for long/ugly URLs and is unhelpful when viewing a list of component IDs.
Requirements
Example:
Putting this text in the editor modal
Should result in this slug:
Obviously, make sure the slug is unique.
Note that the Learning Core API does allow changing the slug after creation, so if necessary the workflow can be: generate UUID slug -> launch editor -> rename usage key based on display name at first save
(In future versions, we may want to just make the slug editable for any components that have never been published or even better, never been used in a course)
The text was updated successfully, but these errors were encountered: