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

"Add as Expression" button #1191

Closed
jamlung-ri opened this issue Jan 26, 2022 · 11 comments
Closed

"Add as Expression" button #1191

jamlung-ri opened this issue Jan 26, 2022 · 11 comments
Assignees
Labels
openmrs web2 OCL WEB v2

Comments

@jamlung-ri
Copy link
Contributor

Following up on #1187, there is one more powerful feature that would help users to manage collections using our Dynamic References features.

When using the Add References feature, a user could do a search (maybe with one or more filters) and select all concepts with the intent of adding a single, powerful expression rather than individual expressions. A user should essentially be able to take the search query, filters, etc. or the source/collection in view and, rather than creating individual expressions, can add the query as a single reference.

Worth noting that we can already add these expressions using the Add Expressions tab, but this would help users to construct these queries easier.

@paynejd
Copy link
Member

paynejd commented Jan 26, 2022 via email

@snyaggarwal snyaggarwal self-assigned this Jan 27, 2022
@snyaggarwal snyaggarwal added the web2 OCL WEB v2 label Jan 27, 2022
snyaggarwal added a commit to OpenConceptLab/oclweb2 that referenced this issue Jan 27, 2022
snyaggarwal added a commit to OpenConceptLab/oclweb2 that referenced this issue Jan 31, 2022
…on option with add selected and copy expression
snyaggarwal added a commit to OpenConceptLab/oclweb2 that referenced this issue Jan 31, 2022
@jamlung-ri
Copy link
Contributor Author

There is a little more to do with this, which we noted in the Arch call from 1/28/2022

snyaggarwal added a commit to OpenConceptLab/oclapi2 that referenced this issue Jan 31, 2022
snyaggarwal added a commit to OpenConceptLab/oclapi2 that referenced this issue Jan 31, 2022
snyaggarwal added a commit to OpenConceptLab/oclapi2 that referenced this issue Jan 31, 2022
@snyaggarwal
Copy link
Contributor

@jamlung-ri This should be deployed on QA

@jamlung-ri
Copy link
Contributor Author

jamlung-ri commented Feb 1, 2022

Looks like there are some bugs, and we can probably reword the buttons a little bit.

Bugs:

  • Add as expression does not seem to be working when I first access the page i.e. no filters applied. It lets me go through the Add Mappings prompt, but then it just spins and is never able to add the reference. It eventually gives a 504 Gateway Timeout. Once I applied a filter, however, I was able to add the expression.
    image

  • I was also unable to Add Selected concepts. Not sure why, but it just spins on this screen, with no prompts about Adding Mappings. It also eventually gives a 504 Gateway Timeout.
    image

Button rewording and behavior change:
I think it might make more sense if the button works more like this, although we can refine it to whatever makes the most sense.
Untitled drawing
In this case, if no concepts are selected, then the "Add selected concepts" option would be disabled and greyed out. If concepts are selected (and there is no available expression), then the "Add expression" option would be disabled.

snyaggarwal added a commit to OpenConceptLab/oclapi2 that referenced this issue Feb 1, 2022
snyaggarwal added a commit to OpenConceptLab/oclweb2 that referenced this issue Feb 2, 2022
@snyaggarwal
Copy link
Contributor

@jamlung-ri This should all be fixed on QA

@jamlung-ri
Copy link
Contributor Author

jamlung-ri commented Feb 2, 2022

Cool! One more thing:

  • Implement the same Add as Expression button into the "Find a Source/Collection". This would allow a user to add an expression to get all concepts or mappings from a particular source or collection. This might need something to allow the user to decide whether to add a reference for concepts only, for mappings only, or for both (maybe using a nested dropdown list?).
    image
    Example nested list:
    image

snyaggarwal added a commit to OpenConceptLab/oclweb2 that referenced this issue Feb 3, 2022
…arch | options to add concepts/mappings/both expressions
@snyaggarwal
Copy link
Contributor

@jamlung-ri this is deployed on QA

@jamlung-ri
Copy link
Contributor Author

This is working well! One quick question: should this popup be appearing when adding an expression? I don't think it actually adds mappings, even if the boxes are checked.
image

@snyaggarwal
Copy link
Contributor

snyaggarwal commented Feb 4, 2022

@jamlung-ri this is something we have to discuss, ideally with any expression we should/may have $cascade clubbed

@snyaggarwal
Copy link
Contributor

@jamlung-ri Can this be closed?

@jamlung-ri
Copy link
Contributor Author

I think so, We can do a follow-up ticket if needed for the expression $cascade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmrs web2 OCL WEB v2
Projects
None yet
Development

No branches or pull requests

3 participants