Skip to content

Conversation

@hhund
Copy link
Member

@hhund hhund commented Oct 2, 2024

  • Adds OrganizationAffiliation role update test case.
  • Adds Organization and OrganizationAffiliation update test cases for database pre filled with 500_000 rows in tasks table.
  • Adds new all_read_access_resources view that contains all resources except Task and QuestionnaireResponse as read access to both is not configured via meta read-access tags.
  • Improves performance of AFTER INSERT ON organizations and AFTER INSERT ON organization_affiliations trigger.

closes #230

hhund added 5 commits October 2, 2024 19:27
Test case checks whether an entry is deleted from the read_access table
for a resource configured for role access by a DIC member (member.com)
of the parent organization (parent.com) if the OrganizationAffiliation
for that parent/member relationship changes from DIC to HRP.
Added performance test for Organization and OrganizationAffiliation
updates with 500.000 rows existing in the tasks table.
Added a new all_read_access_resources view that includes all resources
except Task and QuestionnaireResponse.

Improved after organizations and organization_affiliations insert
triggers by removing unnecessary delete/insert operations for FHIR
updates (db inserts) of unchanged Organization and
OrganizationAffiliation resources. Unchanged in this case means no
active status change for both resource types and no role change for
OrganizationAffiliations. Both triggers now also use the new
all_read_access_resources view.
@hhund hhund added this to the 1.6.0 milestone Oct 2, 2024
@hhund hhund requested a review from wetret October 2, 2024 18:48
@hhund hhund self-assigned this Oct 2, 2024
@hhund hhund linked an issue Oct 3, 2024 that may be closed by this pull request
@hhund hhund merged commit a9ee855 into develop Oct 8, 2024
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.

Improve Performance of Organization and OrganizationAffiliation Updates

3 participants