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

OH2-255 Revise and align permissions for CORE, API and UI #411

Merged
merged 7 commits into from
Jan 9, 2024

Conversation

mwithi
Copy link
Member

@mwithi mwithi commented Dec 13, 2023

See OH2-255.

  • remove duplicates
  • add missing
  • refactor some controllers and endpoints (resources in plurals)
  • made all permissions spelled like endpoint
  • sort in alphabetical order, then CRUD order
  • remove PATCH methods (we are not using as for now, maybe in future)
  • move /discharges to /admissions/discharges endpoint and remove related permissions (admissions.* ones will be used)
  • update oh.yaml

- remove duplicates
- added missing
- refactored some controllers and endpoints (resources in plurals)
- made permission spelled like endpoint
- sorted in alphabetical order, then CRUD
- removed PATCH methods
and so remove discharges.* permissions, admission.* ones will be used.
@mwithi mwithi requested review from dbmalkovsky, axelpezzo and npasquetto and removed request for axelpezzo December 13, 2023 18:21
@mwithi mwithi changed the title OH2-255 Revise and align permission for CORE, API and UI OH2-255 Revise and align permissions for CORE, API and UI Dec 13, 2023
Copy link
Collaborator

@dbmalkovsky dbmalkovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (to be honest I didn't review the oh.yaml file very much).

@mwithi mwithi mentioned this pull request Dec 20, 2023
mwithi and others added 3 commits December 20, 2023 16:27
OH2-255-revise-permissions-among-core-api-and-ui
* Modify duplicate @PostMapping in VisitsController
Update oh.yaml
Fix Tests

* Removed "// TODO Auto-generated method stub" comments

* Remapped /visit(s) endpoint
@mwithi
Copy link
Member Author

mwithi commented Dec 21, 2023

@npasquetto after #415 we have to update also informatici/openhospital-ui#538 ?

@npasquetto
Copy link
Contributor

@npasquetto after #415 we have to update also informatici/openhospital-ui#538 ?

Yes, due to the naming refactoring, the SPA API client must be regenerated

@mwithi
Copy link
Member Author

mwithi commented Dec 21, 2023

@npasquetto after #415 we have to update also informatici/openhospital-ui#538 ?

Yes, due to the naming refactoring, the SPA API client must be regenerated

Ok, let me do that, thanks!

mwithi added a commit to informatici/openhospital-ui that referenced this pull request Dec 21, 2023
@mwithi
Copy link
Member Author

mwithi commented Dec 21, 2023

@npasquetto after #415 we have to update also informatici/openhospital-ui#538 ?

Yes, due to the naming refactoring, the SPA API client must be regenerated

Ok, let me do that, thanks!

@npasquetto done! please test with informatici/openhospital-ui#538

Copy link
Contributor

@npasquetto npasquetto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some tests and from my point of view it's ok.
I encountered some anomalies but they are not due to the changes in this PR.

@mwithi mwithi merged commit 0c626cb into develop Jan 9, 2024
2 checks passed
@mwithi mwithi deleted the OH2-255-revise-permissions-among-core-api-and-ui branch January 9, 2024 23:19
mwithi added a commit to informatici/openhospital-ui that referenced this pull request Jan 9, 2024
* Permissions redefinition

* Move /discharges to /admissions/discharges endpoint

and so remove discharges.* permissions, admission.* ones will be used.

* Change visits.access -> opds.access

* Fix laboratories permissions

Exam is the object
ExamRow is the detail of the Exam object

Laboratory is the activity (called also "exam") concerning one Exam
object
LaboratoryRow is the detail of a Laboratory activity

Examination is another activity, done by the doctor, nothing to do with
the Exam object or Laboratory activity

* Aling with informatici/openhospital-api#411

* Replace with runtime.ts from develop

* Fix pipeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants