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

refactor: splitting out data-api-repository into it's own module #4181

Merged
merged 8 commits into from
Jun 3, 2024

Conversation

tombuildsstuff
Copy link
Contributor

Spotted whilst reviewing @manicminer's Microsoft Graph PR (#4167) I realised that it's going to be easier if this is split out ahead of time, to differentiate what's needed/changed for Graph (so that we can ensure this is threaded through everywhere as needed).

This PR allows the three data related tools (data-api, importer-msgraph-metadata and importer-rest-api-specs) to use the same models and repository for interacting with the data (importer-rest-api-specs uses both now, the other two will be refactored in a bit)

… `models`

I've intentionally opted to copy rather than copy and aliqs the old ones since the next
step will be running find/replace onthe import paths - so I'm not convinced it's worth the aliasing time
This contains a Commit SHA for the import source, so shouldn't be specific to RM
…repository` temporarily

This'll facilitate moving the files, intentionally staging this to make merge conflicts easier?
…ocal logger

The logger instance `logging.Log` is passed in, so this is no different - but means this can be refactored out
…o the repository module

This allows other things to use it, with tweaks, as needed.
@tombuildsstuff tombuildsstuff requested a review from a team June 3, 2024 17:44
Copy link

github-actions bot commented Jun 3, 2024

Breaking Changes

No Breaking Changes were found 👍

Copy link

github-actions bot commented Jun 3, 2024

Summary of Changes

No Breaking or Non-Breaking Changes were found 👍

Copy link

github-actions bot commented Jun 3, 2024

New Resource ID Segments containing Static Identifiers

No new Resource ID Segments containing Static Identifiers were identified in the set of changes 🤙.

Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

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

Thanks @tombuildsstuff, this LGTM 👍

@manicminer manicminer added tool/data-api Issues with the Data API refactor labels Jun 3, 2024
@manicminer manicminer merged commit 34778f3 into main Jun 3, 2024
4 checks passed
@manicminer manicminer deleted the refactor/data-api-repository-take-ii branch June 3, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor tool/data-api Issues with the Data API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants