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

Move the dataclass storing MyTardis introspection information into the MyTardis client #463

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

andrew-uoa
Copy link
Collaborator

@andrew-uoa andrew-uoa commented Jul 16, 2024

IntrospectionConfig seems out of place in the src.config module, as the other types there are used to set/adjust aspects of the ingestion behaviour, whereas IntrospectionConfig stores configuration obtained from MyTardis; it's effectively immutable from the perspective of the ingestion code.

The changes are:

  • Move IntrospectionConfig into mytardis_client.response_data and rename to MyTardisIntrospection.
  • Move logic for parsing/validating an introspection response out of Overseer and into the MyTardisIntrospection dataclass, as this is strongly tied to the structure of MyTardis responses, so probably belongs in mytardis_client somewhere
  • Make some associated changes to the tests

@andrew-uoa andrew-uoa changed the title Move the definition of IntrospectionConfig to mytardis_client because conceptually, it is used to hold data we obtain from MyTardis about its own configuration, not for configuring the ingestion behaviour. Move the dataclass storing MyTardis introspection information into the MyTardis client Jul 16, 2024
… conceptually, it is used to hold data we obtain from MyTardis about its own configuration, not for configuring the ingestion behaviour.
…nitions into the dataclass definition. Delete a redundant test fixture
@andrew-uoa andrew-uoa force-pushed the IDS-831-move-introspection-config branch from c9f009b to c014646 Compare July 16, 2024 04:36
@JLoveUOA JLoveUOA self-requested a review July 16, 2024 04:39
Copy link
Collaborator

@JLoveUOA JLoveUOA left a comment

Choose a reason for hiding this comment

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

Looks good to me, good to go with the include and comment tidy ups 👍

@andrew-uoa andrew-uoa merged commit 7af93b1 into main Jul 16, 2024
3 checks passed
@andrew-uoa andrew-uoa deleted the IDS-831-move-introspection-config branch July 16, 2024 04:44
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.

2 participants