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

Feature/AMP-30574/sectors mapping #4199

Open
wants to merge 87 commits into
base: develop
Choose a base branch
from

Conversation

drossi-dg
Copy link
Contributor

No description provided.

Improvements in Endpoints.
Part of admin page
CRUD Sector Mappings and cleaning code
Updating all activities
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.
@jdeanquin-dg jdeanquin-dg changed the title Feature/amp 30574/sectors mapping Feature/AMP-30574/sectors mapping Dec 28, 2023
@@ -34,6 +31,17 @@ public static void requireValid(Object obj) {
}
}

public static void valuesValid(Collection possibleValues, Object value) {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will

Copy link
Contributor Author

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();
Copy link
Contributor

@brianbrix brianbrix Dec 29, 2023

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.

Copy link
Contributor Author

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
jdeanquin-dg
jdeanquin-dg previously approved these changes Jun 11, 2024
brianbrix added 11 commits June 13, 2024 09:24
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
@brianbrix brianbrix force-pushed the feature/AMP-30574/sectors-mapping branch from 75845e2 to cef4fb2 Compare June 14, 2024 15:18
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
@brianbrix brianbrix force-pushed the feature/AMP-30574/sectors-mapping branch from e4d6ea0 to 04e7a25 Compare June 15, 2024 21:53
Map primary and secondary sectors
@brianbrix brianbrix force-pushed the feature/AMP-30574/sectors-mapping branch from 04e7a25 to 32ee591 Compare June 15, 2024 22:03
brianbrix added 13 commits June 16, 2024 01:05
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
Map primary and secondary sectors
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.

3 participants