Skip to content

Tanagra-Aou-Integration-Updated for AoU changes#412

Merged
chenchals merged 6 commits intomainfrom
chenchals/DT-297-Tanagra-AoU-local-dev
Jun 1, 2023
Merged

Tanagra-Aou-Integration-Updated for AoU changes#412
chenchals merged 6 commits intomainfrom
chenchals/DT-297-Tanagra-AoU-local-dev

Conversation

@chenchals
Copy link
Collaborator

@chenchals chenchals commented May 24, 2023

The changes include:

  • adding mariadb dependency to build.gradle
  • updated changesets with properties for column-types for different dbms
  • Successfully ran api test for getting person entity from BQ
image

@chenchals chenchals requested a review from marikomedlock May 24, 2023 21:01
@chenchals chenchals force-pushed the chenchals/DT-297-Tanagra-AoU-local-dev branch from b95d2af to 7522b95 Compare May 31, 2023 17:54
Copy link
Collaborator

@marikomedlock marikomedlock left a comment

Choose a reason for hiding this comment

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

Thanks for this work! It's great to see it working in the tests.

Comment on lines +482 to +489
- column:
name: selection_data
type: text
type: ${text.type}
constraints:
nullable: false
- column:
name: ui_config
type: text
type: ${text.type}
Copy link
Collaborator

Choose a reason for hiding this comment

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

These two fields are serialized json and may be longer than 255 characters. What do you think about using longtext for these fields in MySql?

Copy link
Collaborator Author

@chenchals chenchals May 31, 2023

Choose a reason for hiding this comment

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

Several alternatives: varchar(65xxx), longtext can hold up to 4GB data. Done!

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK either sounds fine: longer varchar (maybe 25k is enough) or longtext. We can always change the datatype in the future if we find we're hitting the limit. I think we'd hit the 255 limit fairly quickly though.

Comment on lines +36 to +38
- column:
name: key
type: text
type: ${_text.type}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This column is part of the unique constraint, should it be id.type instead?

Copy link
Collaborator Author

@chenchals chenchals May 31, 2023

Choose a reason for hiding this comment

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

yes, if it is part of unique constraint, varchar(255) is OK too if key length if >50. Done!

databaseChangeLog:
- property:
dbms: postgresql
name: _id.type
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are the names prefixed with an underscore in this changeset file and not in the previous one? I think it would be easier to follow if they are the same in both places.

Copy link
Collaborator Author

@chenchals chenchals May 31, 2023

Choose a reason for hiding this comment

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

no reason, not sure if property names must be unique across changelogs. I will remove the _ and check. Updated with global properties

Comment on lines +94 to +95
name: key
type: text
type: ${_text.type}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as above. This column is part of the unique constraint, does it need to be id.type?

Copy link
Collaborator Author

@chenchals chenchals May 31, 2023

Choose a reason for hiding this comment

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

yes, if it is part of unique constraint, varchar(255) is OK too if key length if >50. Done!

Comment on lines +122 to +123
name: enum
type: text
type: ${_text.type}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as above. This column is part of the unique constraint, should it be id.type?

Copy link
Collaborator Author

@chenchals chenchals May 31, 2023

Choose a reason for hiding this comment

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

yes, if it is part of unique constraint, varchar(255) is OK too if key length if >50. Done!

@marikomedlock marikomedlock self-requested a review June 1, 2023 10:07
@chenchals chenchals merged commit 05553c8 into main Jun 1, 2023
@chenchals chenchals deleted the chenchals/DT-297-Tanagra-AoU-local-dev branch June 1, 2023 14:00
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.

2 participants