-
Notifications
You must be signed in to change notification settings - Fork 14
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/cto 104 reservoir project #672
Feature/cto 104 reservoir project #672
Conversation
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.
Do have a comment on the pumpback/etc location office.
private final Calendar UTC_CALENDAR = Calendar.getInstance(TimeZone.getTimeZone("UTC")); | ||
|
||
public static final String SELECT_PART = "select project.office_id,\n" | ||
+ " project.location_id as project_id,\n" |
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.
For want of Java 17 that allows the python style """ strings.
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.
It will be cleaner when I move the query into a resource file
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
builder.withPumpBackLocation(new Location.Builder(r.getOFFICE_ID(), r.getPUMP_BACK_LOCATION_ID()) | ||
.withActive(null) | ||
.build() | ||
); // Can we assume same office? |
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.
Hmm, that's a good question. And one for the districts, but I suspect it's cleaner here later if we just don't.
The query above does include the given office_id for each and should probably be used.
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.
Just removed the method that used the view with the missing office-ids. We'll use the table join for now.
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.
A reasonable substitute.
No description provided.