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

Can't specify specific resource type permissions for bulk export #3376

Conversation

oliviayou
Copy link
Collaborator

@oliviayou oliviayou commented Feb 10, 2022

Closes #3394

  • When exporting data that should only belong to a specific group of resources the user is permitted to export, data from other groups is returned. This has been corrected.
  • New tests
  • Add changelog

@codecov
Copy link

codecov bot commented Feb 10, 2022

Codecov Report

❗ No coverage uploaded for pull request base (rel_5_7@3531d9b). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head e12b93b differs from pull request most recent head 79d1f25. Consider uploading reports for the commit 79d1f25 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             rel_5_7    #3376   +/-   ##
==========================================
  Coverage           ?   82.82%           
  Complexity         ?    20499           
==========================================
  Files              ?     1371           
  Lines              ?    73639           
  Branches           ?    11069           
==========================================
  Hits               ?    60993           
  Misses             ?     8395           
  Partials           ?     4251           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3531d9b...79d1f25. Read the comment docs.

@tadgh tadgh requested a review from fil512 February 14, 2022 21:20
@tadgh tadgh merged commit a918e12 into rel_5_7 Feb 14, 2022
@tadgh tadgh deleted the 2786-bug-specify-specific-resource-type-permissions-for-bulk-export branch February 14, 2022 21:52
tadgh added a commit that referenced this pull request Feb 18, 2022
* fix handling of common search parameters

* Revert "fix handling of common search parameters"

This reverts commit 89c45ee.

* Fix implementation, add test (#3378)

* Fix implementation, add test

* Tighten test

* Rip out dead modules

* Add changelog

* Jr 20220210 handle common search params in contained searches (#3377)

* fix handling of common search parameters

* add support for reference search parameters with multiple paths

* Issue 3357

* Version bump

* Fixed null pointer exception for re-loading subscription on cdr restart and when there's no partition id in the request, and added tests

* added changelogs for this fix

* Fix broken changelog file

* Can't specify specific resource type permissions for bulk export (#3376)

* deny user from exporting without perms

* add unit tests

* add changelog

Co-authored-by: olivia-you <[email protected]>

* Make migration donothing as it was added in error

* Remove ehcache

* Add version.yaml:

* Add to sources/javadocs for dist

* Fix typo

* fix up pom

* wip test removing checkstyle plugin from deployable pom

* remove test pom changes, instead just dont deploy to sonatype

* typo

* Remove ehcache

Co-authored-by: Jason Roberts <[email protected]>
Co-authored-by: JasonRoberts-smile <[email protected]>
Co-authored-by: Mark Iantorno <[email protected]>
Co-authored-by: Steven Li <[email protected]>
Co-authored-by: Olivia You <[email protected]>
Co-authored-by: olivia-you <[email protected]>
tadgh added a commit that referenced this pull request Mar 18, 2022
* fix handling of common search parameters

* Revert "fix handling of common search parameters"

This reverts commit 89c45ee.

* Fix implementation, add test (#3378)

* Fix implementation, add test

* Tighten test

* Rip out dead modules

* Add changelog

* Jr 20220210 handle common search params in contained searches (#3377)

* fix handling of common search parameters

* add support for reference search parameters with multiple paths

* Issue 3357

* Version bump

* Fixed null pointer exception for re-loading subscription on cdr restart and when there's no partition id in the request, and added tests

* added changelogs for this fix

* Fix broken changelog file

* Can't specify specific resource type permissions for bulk export (#3376)

* deny user from exporting without perms

* add unit tests

* add changelog

Co-authored-by: olivia-you <[email protected]>

* Make migration donothing as it was added in error

* Remove ehcache

* Add version.yaml:

* Add to sources/javadocs for dist

* Fix typo

* fix up pom

* wip test removing checkstyle plugin from deployable pom

* remove test pom changes, instead just dont deploy to sonatype

* typo

* Version bump

* Add implementation, testing, and changelog

* Add backport info, make aware of 6_0_0

* add jira ref

* Fix test

* Add versionenum

* Remove dups

* Remove unnecessary stuff

Co-authored-by: Jason Roberts <[email protected]>
Co-authored-by: JasonRoberts-smile <[email protected]>
Co-authored-by: Mark Iantorno <[email protected]>
Co-authored-by: Steven Li <[email protected]>
Co-authored-by: Olivia You <[email protected]>
Co-authored-by: olivia-you <[email protected]>
tadgh added a commit that referenced this pull request Apr 5, 2022
* fix handling of common search parameters

* Revert "fix handling of common search parameters"

This reverts commit 89c45ee.

* Fix implementation, add test (#3378)

* Fix implementation, add test

* Tighten test

* Rip out dead modules

* Add changelog

* Jr 20220210 handle common search params in contained searches (#3377)

* fix handling of common search parameters

* add support for reference search parameters with multiple paths

* Issue 3357

* Version bump

* Fixed null pointer exception for re-loading subscription on cdr restart and when there's no partition id in the request, and added tests

* added changelogs for this fix

* Fix broken changelog file

* Can't specify specific resource type permissions for bulk export (#3376)

* deny user from exporting without perms

* add unit tests

* add changelog

Co-authored-by: olivia-you <[email protected]>

* Make migration donothing as it was added in error

* Remove ehcache

* Add version.yaml:

* Add to sources/javadocs for dist

* Fix typo

* fix up pom

* wip test removing checkstyle plugin from deployable pom

* remove test pom changes, instead just dont deploy to sonatype

* typo

* Version bump

* Add implementation, testing, and changelog

* Add backport info, make aware of 6_0_0

* add jira ref

* Fix test

* Add versionenum

* Bump dep for spring, add changelog, add versionenum, add changelog folder

* Actually do the version bump

* remove doubleimport

Co-authored-by: Jason Roberts <[email protected]>
Co-authored-by: JasonRoberts-smile <[email protected]>
Co-authored-by: Mark Iantorno <[email protected]>
Co-authored-by: Steven Li <[email protected]>
Co-authored-by: Olivia You <[email protected]>
Co-authored-by: olivia-you <[email protected]>
jkiddo pushed a commit to trifork/hapi-fhir that referenced this pull request Apr 19, 2022
* fix handling of common search parameters

* Revert "fix handling of common search parameters"

This reverts commit 89c45ee.

* Fix implementation, add test (hapifhir#3378)

* Fix implementation, add test

* Tighten test

* Rip out dead modules

* Add changelog

* Jr 20220210 handle common search params in contained searches (hapifhir#3377)

* fix handling of common search parameters

* add support for reference search parameters with multiple paths

* Issue 3357

* Version bump

* Fixed null pointer exception for re-loading subscription on cdr restart and when there's no partition id in the request, and added tests

* added changelogs for this fix

* Fix broken changelog file

* Can't specify specific resource type permissions for bulk export (hapifhir#3376)

* deny user from exporting without perms

* add unit tests

* add changelog

Co-authored-by: olivia-you <[email protected]>

* Make migration donothing as it was added in error

* Remove ehcache

* Add version.yaml:

* Add to sources/javadocs for dist

* Fix typo

* fix up pom

* wip test removing checkstyle plugin from deployable pom

* remove test pom changes, instead just dont deploy to sonatype

* typo

* Version bump

* Add implementation, testing, and changelog

* Add backport info, make aware of 6_0_0

* add jira ref

* Fix test

* Add versionenum

* Bump dep for spring, add changelog, add versionenum, add changelog folder

* Actually do the version bump

* remove doubleimport

Co-authored-by: Jason Roberts <[email protected]>
Co-authored-by: JasonRoberts-smile <[email protected]>
Co-authored-by: Mark Iantorno <[email protected]>
Co-authored-by: Steven Li <[email protected]>
Co-authored-by: Olivia You <[email protected]>
Co-authored-by: olivia-you <[email protected]>
tadgh added a commit that referenced this pull request Jul 12, 2022
* fix handling of common search parameters

* Revert "fix handling of common search parameters"

This reverts commit 89c45ee.

* Fix implementation, add test (#3378)

* Fix implementation, add test

* Tighten test

* Rip out dead modules

* Add changelog

* Jr 20220210 handle common search params in contained searches (#3377)

* fix handling of common search parameters

* add support for reference search parameters with multiple paths

* Issue 3357

* Version bump

* Fixed null pointer exception for re-loading subscription on cdr restart and when there's no partition id in the request, and added tests

* added changelogs for this fix

* Fix broken changelog file

* Can't specify specific resource type permissions for bulk export (#3376)

* deny user from exporting without perms

* add unit tests

* add changelog

Co-authored-by: olivia-you <[email protected]>

* Make migration donothing as it was added in error

* Remove ehcache

* Add version.yaml:

* Add to sources/javadocs for dist

* Fix typo

* fix up pom

* wip test removing checkstyle plugin from deployable pom

* remove test pom changes, instead just dont deploy to sonatype

* typo

* Version bump

* Add implementation, testing, and changelog

* Add backport info, make aware of 6_0_0

* add jira ref

* Fix test

* Add versionenum

* Bump dep for spring, add changelog, add versionenum, add changelog folder

* Actually do the version bump

* 3654 postgres lobs (#3656)

* Implementation, test, changelog

* Modify changelog

* Fix changelog

* Add upgrade.md file

* Modify to yaml changes

* Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/5_7_3/3654-lob-problems.yaml

Co-authored-by: Ken Stevens <[email protected]>

* tidy

* more work

Co-authored-by: Ken Stevens <[email protected]>

* Fix bad yaml indent

* Version bump

* Back out the reindex changes introduced in 5.7.3

* update changelog

* version bump

* added fix for subscription in default partition when default partition's id is null

* added changelog

* Add version info and changelog folder

* adding release pipeline yml file fo azure

* Fix parameter count limitation on MSSQL/Oracle large transactions (#3075)

* Fix parameter count limitation on MSSQL/Oracle large transactions

* Changelog fix

* Move changelog

* Force a change to trigger CI

* Test refactoring

* Backport oracle fix

* Fix backport

* upping version to 5.7.5 for release

* add versionenum

* Updating version to: 5.7.6 post release.

* Add query-chunk-aware code

* Add new folder

* Fix up versionenum

* Remove imports

Co-authored-by: Jason Roberts <[email protected]>
Co-authored-by: JasonRoberts-smile <[email protected]>
Co-authored-by: Mark Iantorno <[email protected]>
Co-authored-by: Steven Li <[email protected]>
Co-authored-by: Olivia You <[email protected]>
Co-authored-by: olivia-you <[email protected]>
Co-authored-by: Ken Stevens <[email protected]>
Co-authored-by: Long Ma <[email protected]>
Co-authored-by: James Agnew <[email protected]>
Qingyixia pushed a commit that referenced this pull request Jul 22, 2022
* fix handling of common search parameters

* Revert "fix handling of common search parameters"

This reverts commit 89c45ee.

* Fix implementation, add test (#3378)

* Fix implementation, add test

* Tighten test

* Rip out dead modules

* Add changelog

* Jr 20220210 handle common search params in contained searches (#3377)

* fix handling of common search parameters

* add support for reference search parameters with multiple paths

* Issue 3357

* Version bump

* Fixed null pointer exception for re-loading subscription on cdr restart and when there's no partition id in the request, and added tests

* added changelogs for this fix

* Fix broken changelog file

* Can't specify specific resource type permissions for bulk export (#3376)

* deny user from exporting without perms

* add unit tests

* add changelog

Co-authored-by: olivia-you <[email protected]>

* Make migration donothing as it was added in error

* Remove ehcache

* Add version.yaml:

* Add to sources/javadocs for dist

* Fix typo

* fix up pom

* wip test removing checkstyle plugin from deployable pom

* remove test pom changes, instead just dont deploy to sonatype

* typo

* Version bump

* Add implementation, testing, and changelog

* Add backport info, make aware of 6_0_0

* add jira ref

* Fix test

* Add versionenum

* Bump dep for spring, add changelog, add versionenum, add changelog folder

* Actually do the version bump

* 3654 postgres lobs (#3656)

* Implementation, test, changelog

* Modify changelog

* Fix changelog

* Add upgrade.md file

* Modify to yaml changes

* Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/5_7_3/3654-lob-problems.yaml

Co-authored-by: Ken Stevens <[email protected]>

* tidy

* more work

Co-authored-by: Ken Stevens <[email protected]>

* Fix bad yaml indent

* Version bump

* Back out the reindex changes introduced in 5.7.3

* update changelog

* version bump

* added fix for subscription in default partition when default partition's id is null

* added changelog

* Add version info and changelog folder

* adding release pipeline yml file fo azure

* Fix parameter count limitation on MSSQL/Oracle large transactions (#3075)

* Fix parameter count limitation on MSSQL/Oracle large transactions

* Changelog fix

* Move changelog

* Force a change to trigger CI

* Test refactoring

* Backport oracle fix

* Fix backport

* upping version to 5.7.5 for release

* add versionenum

* Updating version to: 5.7.6 post release.

* Add query-chunk-aware code

* Add new folder

* Fix up versionenum

* Remove imports

Co-authored-by: Jason Roberts <[email protected]>
Co-authored-by: JasonRoberts-smile <[email protected]>
Co-authored-by: Mark Iantorno <[email protected]>
Co-authored-by: Steven Li <[email protected]>
Co-authored-by: Olivia You <[email protected]>
Co-authored-by: olivia-you <[email protected]>
Co-authored-by: Ken Stevens <[email protected]>
Co-authored-by: Long Ma <[email protected]>
Co-authored-by: James Agnew <[email protected]>
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