Skip to content

DD-2318: code for splitted table#248

Draft
jo-pol wants to merge 17 commits into
DANS-KNAW:v6.9-DANS-DataStationfrom
DANS-KNAW-jp:DD-2318-code-for-splitted-table
Draft

DD-2318: code for splitted table#248
jo-pol wants to merge 17 commits into
DANS-KNAW:v6.9-DANS-DataStationfrom
DANS-KNAW-jp:DD-2318-code-for-splitted-table

Conversation

@jo-pol

@jo-pol jo-pol commented Jun 25, 2026

Copy link
Copy Markdown

What this PR does / why we need it:

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer:

Suggestions on how to test this:

  • With user postgres on the DANS VM pre-provisioned-dev_dataversenl_v6.9-PATCH-7_2026-03-05.box and DD-2317: split table TermsOfUseAndAccess #247

    psql --echo-all dvndb < /vagrant/external/dataverse/src/main/resources/db/migration/V6.9.0.1__DD2317-split-termsofuseandaccess.sql
    
  • Compile this PR and in the root of dans-core-systems

    deploy.py --dataverse-war external/dataverse/target/dataverse dev_dataversenl
    
  • Vist the web-UI of the VM and show a dataset

  • Upload a file and save the changes throws 10 times:

    Internal Exception: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "termsofaccess_pkey"
      Detail: Key (id)=(2) already exists.
    Error Code: 0
    Call: INSERT INTO TERMSOFACCESS (AVAILABILITYSTATUS, CONTACTFORACCESS, DATAACCESSPLACE, ORIGINALARCHIVE, SIZEOFCOLLECTION, STUDYCOMPLETION, TERMSOFACCESS) VALUES (?, ?, ?, ?, ?, ?, ?)
            bind => [7 parameters bound]
    Query: InsertObjectQuery(edu.harvard.iq.dataverse.TermsOfAccess[ id=null ])
    
  • Same exceptions when changing a metadata field.

  • ...

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

API-s that used TermsOfUseAndAccess will need another json

Additional documentation:

@jo-pol jo-pol changed the title Dd 2318 code for splitted table DD-2318: code for splitted table Jun 25, 2026
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.

1 participant