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

[battery_manager] use visit controller to fetch visit list #8485

Merged
merged 3 commits into from Jun 21, 2023

Conversation

ridz1208
Copy link
Collaborator

@ridz1208 ridz1208 commented Mar 28, 2023

Brief summary of changes

The battery manager currently uses the Utility::getVisitList() function to list the visits available. That utility function queries the session table for existing visitlabels used in at least one session. That is problematic when you are creating a new visit and new instruments and want to assign instruments to the new visit, it simply does not show up in the drop down.

This PR fixes that problem and removes the use of Utility::getInstrumentList to get an accurate list of full names for instruments and get rid of deprecation warnings

@ridz1208 ridz1208 added Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) 24.0.0-bugs Issues or bug fix PRs that were raised during the testing of release 24.0.0 labels Mar 28, 2023
@KLaFleur
Copy link
Contributor

When I try this out, the dropdowns which should show the visits (V1,V2,V3, etc) just return the default js object serialization [object Object] a screenshot is attached below. It's possible this is due to a database issue on my end, but I'm not sure what that'd be.

Screen Shot 2023-04-27 at 11 27 56 PM

@ridz1208
Copy link
Collaborator Author

@KLaFleur this is interesting. The list I was modifying is the one under the "add test" modal window. can you test if that one is working and if not I can take a look at whats happening

@KLaFleur
Copy link
Contributor

KLaFleur commented Apr 29, 2023 via email

@ridz1208
Copy link
Collaborator Author

@KLaFleur could you test again please

@KLaFleur
Copy link
Contributor

KLaFleur commented Jun 20, 2023 via email

@ridz1208 ridz1208 added the Passed Manual Tests PR has undergone proper testing by at least one peer label Jun 20, 2023
@ridz1208
Copy link
Collaborator Author

@KLaFleur take a look at the code and try to spot any issues. @driusan will do a secondary review after. when you take a look at the code, if all is well make sure to "Approve" the PR

@driusan driusan merged commit 12cbd16 into aces:24.1-release Jun 21, 2023
9 checks passed
@ridz1208 ridz1208 added this to the 24.1.5 milestone Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
24.0.0-bugs Issues or bug fix PRs that were raised during the testing of release 24.0.0 Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) Passed Manual Tests PR has undergone proper testing by at least one peer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[battery manager] Get list of visits from visits table not session
3 participants