Skip to content

Commit

Permalink
Save features uploaded from CSV as legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
yulia-bel committed Aug 4, 2023
1 parent 970f9e5 commit d1b7fd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export class FeatureAmountUploadService {
featureClassName: feature.feature_name,
projectId: projectId,
creationStatus: JobStatus.done,
isLegacy: true,
};
});

Expand Down
2 changes: 2 additions & 0 deletions api/apps/api/test/upload-feature/upload-feature.fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ export const getFixtures = async () => {
});
expect(newFeaturesAdded).toHaveLength(2);
expect(newFeaturesAdded[0].projectId).toBe(projectId);
expect(newFeaturesAdded[0].isLegacy).toBe(true);
expect(newFeaturesAdded[1].isLegacy).toBe(true);
},

ThenNewFeaturesAmountsAreCreated: async () => {
Expand Down

0 comments on commit d1b7fd1

Please sign in to comment.