-
Notifications
You must be signed in to change notification settings - Fork 1
Remove need for 'ISPYB_CREDENTIALS' environment variable #588
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
bb60ac9
Passed ISPyB credentials in to 'url()' function to remove the need fo…
tieneupin b48d654
Added debug log to API endpoint for loading ongoing visits
tieneupin b68a062
Simplified imports of classes and functions in 'murfey.server.ispyb'
tieneupin 03897de
Renamed URL and Engine for Murfey DB to make it more self-evident
tieneupin 97dc116
Added fixture for ISPyB credentials file; modified security configura…
tieneupin a78d2bb
Simplified use of security configuration fixture in 'test_run_repost_…
tieneupin 992f484
Renamed the Murfey engine imported for use in other tests
tieneupin 822050c
Added fixtures to create a mock ISPyB session
tieneupin b951353
Attempt at writing unit test for 'get_session_id()' function
tieneupin 43b9bfd
Adjusted scopes of common fixtures in 'conftest.py'
tieneupin f0d7a39
Added fixture to create a tmp_path Path that will persist for the tes…
tieneupin 38eeee6
Accidentally referred to the table class instead of the table instanc…
tieneupin 6f80755
Updated ISPyB database schema version
tieneupin d0e1631
Trying mariadb v10.6, which matches the version used by dependencies
tieneupin 30e0e9f
Dynamically remove '\' characters from comments in SQL files to allow…
tieneupin 84fb9bd
Updated names of CI workflow steps; removed ISPYB_CREDENTIALS variabl…
tieneupin 7282ebf
Switched back to using latest stable version of MariaDB for CI workflow
tieneupin 5825457
Added a class to 'conftest.py' storing the database parameters needed…
tieneupin e82bd67
Simplified the test for the 'get_session_id()' function, now that the…
tieneupin 46c47a1
Changed variable name
tieneupin 464b32e
Add and commit tables one-by-one
tieneupin 20ccaaa
ISPyB tables are specifically 'sqlalchemy.orm.Session' objects; indic…
tieneupin 32fe03a
Table selection in 'sqlalchemy' is done using 'scalar_one()', not 'on…
tieneupin 8336fbd
Forgot to update parameters passed to 'get_session_id()' in test
tieneupin cabec6f
Added unit test for 'get_proposal_id()' function
tieneupin 86e8a07
Forgot to add ISPyB database a a parameter
tieneupin 3c656de
Try using 'begin_nested()' to roll back ISPyB database after tests
tieneupin 06db6fa
Moved the insertion of starting ISPyB values to the session factory f…
tieneupin af829e7
Forgot to extract results of the database search
tieneupin a475490
Updated fixture name from 'ispyb_db' to 'ispyb_db_session'
tieneupin 6b6575c
Tried alternate way of setting up test ISPyB database
tieneupin ee04386
Rearranged functions and removed 'attach_event_listener()' as a function
tieneupin bd06a43
Replaced 'start_postgres' with same test-safe functions as for ISPyB …
tieneupin 8f298d8
Replaced use of 'start_postgres' with test-safe 'murfey_db_session' f…
tieneupin 89a02b9
Populate Murfey database tables using 'SQLModel.metadata.create_all()'
tieneupin 16fbc41
Murfey's Session table requires a value for 'id'; it doesn't auto-inc…
tieneupin f065efc
Wrong column name
tieneupin 162288c
Murfey database uses SQLModel commands; recreate Murfey databaes fixt…
tieneupin 8c37fde
Forgot a type hint
tieneupin 8e1e920
Missed replacing some Murfey session ID parameters
tieneupin eb762cd
'tests/__init__.py' can be emptied
tieneupin 88b3bee
Placeholder for future tests
tieneupin 7f84d4c
Added 'ISPyBTableValues' class to store default table values in ISPyB…
tieneupin 1cd0aab
'execute()' is deprecated for SQLModel Session objects, so use 'exec(…
tieneupin 06aad02
Changed variable names; added unit test for 'get_data_collection_grou…
tieneupin d66c453
'get_data_collection_group_ids' does not appear to be in use; deleted…
tieneupin d849fd1
Merged recent changes from 'main' branch
tieneupin f0f70f3
Updated functions to use renamed ISPyBSession() variable
tieneupin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.