-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature/AMP-30574/sectors mapping #4199
base: develop
Are you sure you want to change the base?
Conversation
API: endpoints
Improvements in Endpoints. Part of admin page
CRUD Sector Mappings and cleaning code
Updating all activities
Job files
Fix CRUD saving changes
Cleaning of files and functionalities related with "Update all activities" and Job updater
Functionality in Activity Form
Deleting secondary sectors mapped in Activity Form if an primary sector was deleted.
@@ -34,6 +31,17 @@ public static void requireValid(Object obj) { | |||
} | |||
} | |||
|
|||
public static void valuesValid(Collection possibleValues, Object value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add something like if (possibleValues == null) { throw new IllegalArgumentException("possibleValues cannot be null"); }
to avoid a nullpointer exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
queryString = "select asm from " + AmpSectorMapping.class.getName() + " asm"; | ||
qry = session.createQuery(queryString); | ||
col = qry.list(); | ||
session.flush(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering what get if we dont flush after a select operation. Because typically we should not flush after a select since there is no use for synchronizing the persistence context.. I think we should check this and rectify it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Observations made by Brian
…g' into feature/AMP-30574/sectors-mapping
75845e2
to
cef4fb2
Compare
e4d6ea0
to
04e7a25
Compare
04e7a25
to
32ee591
Compare
No description provided.