edx-platform icon indicating copy to clipboard operation
edx-platform copied to clipboard

feat: added organization dropdown in studio

Open Ian2012 opened this issue 3 years ago • 14 comments

Description

This PR adds a dropdown to select the organization. The dropdown will only be activated for users with CourseCreator permission to specific organizations in Studio.

Use cases:

When FEATURES['ENABLE_CREATOR_GROUP'] = True and the user has CourseCreator permission granted, a dropdown will appear with all specific organizations allowed. In case of all_organizations setting is enabled, all organizations will appear in the dropdown.

In case the user is staff, he can create organizations it will work as before:

image

Testing instructions

  1. Enable course creator group in studio.
  2. Create a student account and give it CourseCreator permission only for some organizations. image
  3. Login as this user and try to create a new course.

Result: image

Ian2012 avatar Sep 12 '22 13:09 Ian2012

Thanks for the pull request, @Ian2012! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

openedx-webhooks avatar Sep 12 '22 13:09 openedx-webhooks

@Ian2012 Thank you for the contribution. Is this ready for our review?

natabene avatar Sep 19 '22 15:09 natabene

@natabene I was waiting for feedback from the community. Do you know someone that maybe interested or has knowledge of the CourseCreator permission?

cc @MaferMazu @mariajgrimaldi

Ian2012 avatar Sep 19 '22 16:09 Ian2012

@Ian2012 I am not aware.

natabene avatar Sep 19 '22 16:09 natabene

Hello @natabene! I can review this one. But I have a question: since it changes in some way the user experience, should we include a product review? Or this minimal change doesn't need it? It's unclear to me how this is handled.

mariajgrimaldi avatar Sep 20 '22 13:09 mariajgrimaldi

Hi, Jon here from the UX team. I'm unable to test, but based on the screenshot this looks like a nice improvement.

jfay1 avatar Oct 05 '22 21:10 jfay1

Hi @jfay1, thanks for the reply

Would you mind explaining why you were unable to test it?

Are you facing some error?

Ian2012 avatar Oct 05 '22 21:10 Ian2012

Hi @Ian2012, no errors but I'm wondering if I need to test on a certain site? Sometimes I'm sent a test link on stage etc.

I'm not sure how to get to the screen in step 2 but I do have permission to create courses in studio. When I create a new course I see the old field, but that's what I would expect.

jfay1 avatar Oct 05 '22 23:10 jfay1

Hey @jmakowski1123 what do you think of this feature. I think that currently it is very annoying to have to know the name of the organization, there is a lot of room for error and this could be solved Do you think anything could be improved?

santiagosuarezedunext avatar Oct 07 '22 18:10 santiagosuarezedunext

@Ian2012 I think this is a good improvement; you should try to fix the test to have a proper review.

MaferMazu avatar Oct 07 '22 23:10 MaferMazu

Hello. I can review this one if we're clear from the product side.

mariajgrimaldi avatar Oct 10 '22 18:10 mariajgrimaldi

Hey @jmakowski1123 what do you think of this feature. I think that currently it is very annoying to have to know the name of the organization, there is a lot of room for error and this could be solved Do you think anything could be improved?

@santiagosuarezedunext It seems to be a useful feature in terms of fixing a known pain point. What does the behavior look like if there are multiple organizations listed in the dropdown? Do they display alphabetically? Is a user able to scroll through the full list of enabled organizations, as well as start typing an organization and be offered a dropdown of selections based on what he/she typed?

jmakowski1123 avatar Oct 10 '22 23:10 jmakowski1123

Hi @jmakowski1123,

What does the behavior look like if there are multiple organizations listed in the dropdown?

The organizations will be sorted by id (creation date).

Is a user able to scroll through the full list of enabled organizations, as well as start typing an organization and be offered a dropdown of selections based on what he/she typed?

No, the dropdown was added because it worked like that before (with the option to type in) but users don't really know which organizations they have access.

Staff users and users with permission to create organizations still have the old input (type and get suggestions)

Ian2012 avatar Oct 10 '22 23:10 Ian2012

I've tested the following in my local environment:

  • ENABLE_CREATOR_GROUP disabled
  • Instructor with permission to all organizations
  • Instructor with permission to just one organization

Technically, this is working like a charm—also, thanks @Ian2012, for considering my suggestions. Given this is under product review, I won't leave my approval yet.

mariajgrimaldi avatar Oct 31 '22 17:10 mariajgrimaldi

@mariajgrimaldi Is there anything that we can do to push this forward?

Ian2012 avatar Nov 16 '22 14:11 Ian2012

@Ian2012: we need to wait for the product review.

Is there anything we could do in the meantime? @jmakowski1123

mariajgrimaldi avatar Nov 17 '22 11:11 mariajgrimaldi

We backport these changes to our Nutmeg instance and It's working, we are expecting for this merge in master.

Alec4r avatar Nov 22 '22 20:11 Alec4r

Flagging this for you @jmakowski1123 and @productryan - please let me know if you've had a chance to review. (Ryan, for some reason I cannot add you as a reviewer).

mphilbrick211 avatar Dec 16 '22 17:12 mphilbrick211

Hi, my name is Brad and I am the product manager for TNL (edx.org Studio). I think this is a good change and makes the product easier to use. It's a useful enhancement and I will move it along to engineering review.

cablaa77 avatar Jan 18 '23 15:01 cablaa77

Hi @jmakowski1123 and @ProductRyan - looks like this still needs product input.

mphilbrick211 avatar Jan 23 '23 20:01 mphilbrick211

Hi @jmakowski1123 and @ProductRyan - looks like this still needs product input.

Oops, sorry, realized @cablaa77 reviewed! Thanks!

mphilbrick211 avatar Jan 23 '23 20:01 mphilbrick211

@mariajgrimaldi ready

Ian2012 avatar Jan 24 '23 03:01 Ian2012

Flagging this as I think it's ready for you to review/merge @mariajgrimaldi :)

mphilbrick211 avatar Jan 26 '23 20:01 mphilbrick211

Thanks Brad!

jmakowski1123 avatar Jan 26 '23 20:01 jmakowski1123

@Ian2012 can you rebase with the master branch? so we can merge. Also @mphilbrick211, thanks for the ping! This PR still has the product review label, should we remove it?

mariajgrimaldi avatar Jan 31 '23 15:01 mariajgrimaldi

@Ian2012 can you rebase with the master branch? so we can merge. Also @mphilbrick211, thanks for the ping! This PR still has the product review label, should we remove it?

@mariajgrimaldi - we're planning to leave those labels on just in case for some reason we need to go back to this PR (or any PR that was marked for Product review. Thank you for checking!

mphilbrick211 avatar Feb 01 '23 17:02 mphilbrick211

@mphilbrick211 good! -just checking- this can be merged, right -from the product view-?

mariajgrimaldi avatar Feb 01 '23 17:02 mariajgrimaldi

@mphilbrick211 good! -just checking- this can be merged, right -from the product view-?

@mariajgrimaldi Looks like it per @cablaa77's comment above!

mphilbrick211 avatar Feb 01 '23 17:02 mphilbrick211

@mariajgrimaldi just checking in to see if this can be merged?

mphilbrick211 avatar Feb 07 '23 19:02 mphilbrick211

@mphilbrick211: the branch is still out-of-date, once @Ian2012 updates it, I'll merge this :)

mariajgrimaldi avatar Feb 07 '23 19:02 mariajgrimaldi