Skip to content

Commit

Permalink
Mergeback 2022 07 08 (#3771)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
10 people authored Jul 12, 2022
1 parent 2bc6c91 commit 57ee932
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ public enum VersionEnum {
V5_7_0,
V5_7_1,
V5_7_2,
V5_7_3,
V5_7_4,
V5_7_5,
V5_7_6,
V6_0_0,
V6_0_1,
V6_0_2,
V6_1_0
V6_1_0,
;

public static VersionEnum latestVersion() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
type: fix
issue: 3654
title: "UPDATE: This change has breen removed. Previous content was: 'Modify reindexing to migrate data HFJ_RES_VER data from the RES_TEXT column to the RES_TEXT_VC
if the resource's size falls inside of the configuration defined in DaoConfig's `getInlineResourceTextBelowSize` property.'"
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- item:
type: "fix"
title: "This version specifically modifies reindex to support moving data from the RES_TEXT to the RES_TEXT_VC column in the HFJ_RES_VER table. This is especially important
for PostgreSQL users, as the RES_TEXT column only has an addressable space of about 4 billion resources.
Any installation that exceeds this amount of resources stored in the RES_TEXT will experience that the software hangs on attempting to store new resources.
In order to avoid this, you should use the `DaoConfig#setInlineResourceTextBelowSize` setting, and set it to a large non-zero value.
This will cause PostgreSQL to not store the resource text as a LOB, but instead as a VARCHAR field. By default, this field has length 4000, but you can and should update it by following the documentation [here](https://smilecdr.com/docs/fhir_storage_relational/fhir_storage_relational_module.html#resource-body-storage).
"

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
release-date: "2022-05-30"
codename: "Sojourner"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
release-date: "2022-06-03"
codename: "Sojourner"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
release-date: "2022-07-07"
codename: "Sojourner"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
release-date: "2022-07-07"
codename: "Sojourner"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
release-date: "FILL ME"
codename: "Sojourner"
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
type: fix
issue: 3065
backport: 5.7.5
title: "A regression in HAPI FHIR 5.5.0 meant that very large transactions where the bundle contained over 1000 distinct client-assigned
resource IDs could fail on MSSQL and Oracle due to SQL parameter count limitations."
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
type: fix
issue: 2669
backport: 5.7.4
title: "Previously subscriptions in a partition with the id null will be matched against incoming resources from all partitions.
Changed to subscriptions will only match against incoming resources in the partition the subscription exists in unless
cross partition subscription is enabled and the subscription has the appropriate extension."
Original file line number Diff line number Diff line change
Expand Up @@ -1435,12 +1435,13 @@ public void reindex(T theResource, ResourceTable theEntity) {
}

TransactionDetails transactionDetails = new TransactionDetails(theEntity.getUpdatedDate());
updateEntity(null, theResource, theEntity, theEntity.getDeleted(), true, false, transactionDetails, true, false);
ResourceTable resourceTable = updateEntity(null, theResource, theEntity, theEntity.getDeleted(), true, false, transactionDetails, true, false);
if (theResource != null) {
CURRENTLY_REINDEXING.put(theResource, null);
}
}


@Transactional
@Override
public void removeTag(IIdType theId, TagTypeEnum theTagType, String theScheme, String theTerm) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import ca.uhn.fhir.rest.api.CacheControlDirective;
import ca.uhn.fhir.rest.api.Constants;
import ca.uhn.fhir.rest.api.MethodOutcome;
import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException;
import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException;
import ca.uhn.fhir.util.HapiExtensions;
import org.hl7.fhir.instance.model.api.IBaseBundle;
Expand All @@ -18,6 +19,7 @@

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
Expand Down

0 comments on commit 57ee932

Please sign in to comment.