Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Source now only uses name for a unique composite key. #3085

Merged
merged 2 commits into from Mar 4, 2022

Conversation

krishnaglick
Copy link
Contributor

@krishnaglick krishnaglick commented Mar 4, 2022

Change description

Source now only uses name for a unique composite key. Explicit test added.

Checklists

Development

  • Application changes have been tested appropriately

Impact

  • Code follows company security practices and guidelines
  • Security impact of change has been considered
  • Performance impact of change has been considered
  • Possible migration needs considered (model migrations, config migrations, etc.)

Please explain any security, performance, migration, or other impacts if relevant:

Code review

  • Pull request has a descriptive title and context useful to a reviewer. Screenshots or screencasts are attached where applicable.
  • Relevant tags have been added to the PR (bug, enhancement, internal, etc.)

@krishnaglick krishnaglick added bug Something isn't working enhancement New feature or request labels Mar 4, 2022
@@ -141,8 +141,6 @@ export class Source extends CommonModel<Source> {
@BelongsTo(() => GrouparooModel)
model: GrouparooModel;

uniqueIdentifier = ["appId", "name"];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

commonModel defaults this to name.

@krishnaglick krishnaglick merged commit e27b4fe into main Mar 4, 2022
@krishnaglick krishnaglick deleted the 180995476-improved-composite-key-logic branch March 4, 2022 16:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants