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

Create plugin dynamo tables #972

Merged
merged 5 commits into from
May 8, 2023
Merged

Create plugin dynamo tables #972

merged 5 commits into from
May 8, 2023

Conversation

manasaV3
Copy link
Collaborator

@manasaV3 manasaV3 commented Mar 30, 2023

Relates to #880

Description

  • Creates tables for plugin, plugin-metadata and plugin-blocked.

  • The plugin-blocked schema follows the spec from the RFC.

  • The plugin-metadata table will store the data from different sources such as pypi, github and manifest. The table will follow the schema designed for the plugin table but without the secondary indices. As the records will only have the source data, the attributes in this table will also be only those defined for the source data ie name, version-type, version, type, data, last_updated_timestamp

  • The plugin table will store only the aggregated plugin data. The schema follows the spec from the RFC with the change that the range key is now the version of the plugin. The type identifier is no longer needed, as all the records in this table are of type=AGGREGATE. This will also result in the type attribute not being stored in this table.

klai95
klai95 previously approved these changes Mar 30, 2023
codemonkey800
codemonkey800 previously approved these changes Mar 30, 2023
Copy link
Collaborator

@codemonkey800 codemonkey800 left a comment

Choose a reason for hiding this comment

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

global secondary index ftw

@manasaV3 manasaV3 marked this pull request as ready for review March 30, 2023 18:55
@manasaV3 manasaV3 dismissed stale reviews from codemonkey800 and klai95 via 7296a3b April 5, 2023 21:59
richaagarwal
richaagarwal previously approved these changes Apr 6, 2023
codemonkey800
codemonkey800 previously approved these changes Apr 6, 2023
klai95
klai95 previously approved these changes Apr 7, 2023
@codemonkey800 codemonkey800 added the new-feature Release Label: Used for categorizing features in automated release notes label Apr 11, 2023
@manasaV3 manasaV3 dismissed stale reviews from klai95, codemonkey800, and richaagarwal via f454243 May 4, 2023 21:58
codemonkey800
codemonkey800 previously approved these changes May 8, 2023
Copy link
Collaborator

@codemonkey800 codemonkey800 left a comment

Choose a reason for hiding this comment

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

one comment but LGTM 🔥

},
{
name = "is_latest"
type = "S" #terraform only supports String, Number or Binary for primary key attribute
Copy link
Collaborator

Choose a reason for hiding this comment

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

how are we planning on storing this? something like true or false?

Copy link
Collaborator Author

@manasaV3 manasaV3 May 8, 2023

Choose a reason for hiding this comment

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

Yeah, they will be treated as strings with the value "true" or "false".

The data type now unfortunately becomes a part of the business logic.

@manasaV3 manasaV3 merged commit 2a14db2 into main May 8, 2023
@manasaV3 manasaV3 deleted the plugin-db-infra branch May 8, 2023 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature Release Label: Used for categorizing features in automated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants