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

view discrepancy note within record #20

Closed
chae-reliatec opened this issue May 27, 2019 · 2 comments
Closed

view discrepancy note within record #20

chae-reliatec opened this issue May 27, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@chae-reliatec
Copy link
Member

chae-reliatec commented May 27, 2019

objective
The "notes and discrepancy" page has the option to open the related field for a specific dn (view within record). There are two bugs with this feature.
The first bug is that the behavior differs when the crf is in inital or administrative state. If it is in initial state the crf is opened in view mode and opened in edit mode when it is in administrative state.
The second bug is that the crf is always opened at the first section even if the related field is on a different section.

reason for change
The user has to search for the related field itself if it is not on the first section and for crfs with the state initial the user needs to additionally close and open the crf. This is time consuming and frustrating.

workflow 1 to reproduce (dn in a crf of state initial on the second section)
1. log in as user A and open an arbitrary crf in edit mode (state initial with at least two sections)
2. create a dn for an arbitrary field in the second section, save the crf and close it
3. open page Notes & Discrepancies
4. call "view within record" for the dn created in step 2
5. check that the crf is opend in edit mode and if the right (second) section is opened (check A)
6. log in as user B
7. open page Notes & Discrepancies
8. call "view within record" for the dn created in step 2
9. check that the crf is opend in view mode and if the right (second) section is opened (check B)

workflow 2 to reproduce (dn in a crf of state administrative on the second section)
1. log in as user A and open an arbitrary crf in edit mode (state administrative with at least two sections)
2. create a dn for an arbitrary field in the second section, save the crf and close it
3. open page Notes & Discrepancies
4. call "view within record" for the dn created in step 2
5. check that the crf is opend in edit mode and if the right (second) section is opened (check A)
6. log in as user B
7. open page Notes & Discrepancies
8. call "view within record" for the dn created in step 2
9. check that the crf is opend in view mode and if the right (second) section is opened (check B)

expected result when error free
The crf is opened in the correct mode and the second section is shown.

expected result when malfunctioning
The crf is opened in the wrong mode or the wrong section is shown.

@chae-reliatec chae-reliatec self-assigned this May 27, 2019
@chae-reliatec chae-reliatec added the bug Something isn't working label May 27, 2019
@chae-reliatec chae-reliatec added this to the LibreClinca-0.2.0 milestone May 27, 2019
@chae-reliatec
Copy link
Member Author

created pull request #25

@chae-reliatec
Copy link
Member Author

The changes are tested and merged to lc-develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant