Skip to content

Commit

Permalink
avniproject/avni-server#663 | GroupSubject member init is a Ignorable…
Browse files Browse the repository at this point in the history
…SyncError, as GroupSubject mappings will be synced based on groupOrHouseholdSubject and doesnot filter on MemberSubject's presence within the catchment
  • Loading branch information
himeshr committed Dec 15, 2023
1 parent a14967e commit 33c16b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/GroupSubject.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import General from "./utility/General";
import GroupRole from "./GroupRole";

class GroupSubject extends BaseEntity {

static EXPLICIT_ERROR_CODE_KEY_FOR_MISSING_MEMBER = 'GroupSubjectMapping-MemberSubject-Association';
static schema = {
name: "GroupSubject",
primaryKey: "uuid",
Expand Down Expand Up @@ -120,7 +122,9 @@ class GroupSubject extends BaseEntity {
childEntityClass,
childResource,
memberSubjectParentIdField,
parentSchema
parentSchema,
true,
GroupSubject.EXPLICIT_ERROR_CODE_KEY_FOR_MISSING_MEMBER
);
const groupRole = entityService.findByKey(
"uuid",
Expand Down
1 change: 1 addition & 0 deletions src/error/ErrorCodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export const ErrorCodes = Object.freeze({
'ChecklistItem-Checklist-Association': 'Association error 12',
'VideoTelemetric-Video-Association': 'Association error 13',
'NoCatchmentFound': 'NoCatchmentFoundErrorMessage',
'GroupSubjectMapping-MemberSubject-Association' : 'Ignorable Association error 01',
});

0 comments on commit 33c16b2

Please sign in to comment.