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

PDCT 395/id generation family #22

Merged
merged 8 commits into from
Oct 17, 2023
Merged

Conversation

diversemix
Copy link
Contributor

@diversemix diversemix commented Oct 17, 2023

Description

  • some minor type / linting fixes
  • Update and extend the family DTOs
  • Generate the family import_id
  • Change the update endpoint to include the import_id
  • update tests
  • Start to introduce "Protocol" for the FamilyRepo

Type of change

Please select the option(s) below that are most relevant:

  • Bug fix
  • New feature
  • Breaking change

How Has This Been Tested?

Please describe the tests that you added to verify your changes.

Reviewer Checklist

  • The PR represents a single feature (small driveby fixes are also ok)
  • The PR includes tests that are sufficient for the level of risk
  • The code is sufficiently commented, particularly in hard-to-understand areas
  • Any required documentation updates have been made
  • Any TODOs added are captured in future tickets
  • No FIXMEs remain

@linear
Copy link

linear bot commented Oct 17, 2023

PDCT-395 Id generation for entities

We will need to construct "import" ids for newly created entities in the form:

<data_source>.<type>.<x>.<y> as we currently do - but the xy components of this id needs storing somewhere or calculating for when we need to generate a new one.

Option 1

Due to the fact that a "data source" is not represented in the database - instead we use organisation… We could change the format to be <organisation>.<type>.<x>.<y> . We would still need some sort of counter table in the backend but this would be linked (and think may be a soft link) to the organisation.

Option 2

We could go the whole-hog and introduce datasources now 🤔

app/model/family.py Outdated Show resolved Hide resolved
Copy link
Contributor

@katybaulch katybaulch left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for raising those tickets for my comments 👍

@diversemix diversemix merged commit 7ae4b2f into main Oct 17, 2023
2 checks passed
@diversemix diversemix deleted the PDCT-395/id-generation-family branch October 17, 2023 16:31
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