Skip to content

ref(utils): Remove from_registry from utils - #1947

Merged
olksdr merged 25 commits into
masterfrom
ref/deps-05
Mar 21, 2023
Merged

olksdr merged 25 commits into
masterfrom
ref/deps-05

Conversation

@olksdr

@olksdr olksdr commented Mar 18, 2023 •

Copy link
Copy Markdown
Contributor

Remove some usage of the global registry from the utils.
This also includes a small refactoring of the ProjectCache, where the context was introduced to hold the services that ProjectCache and Projects need.

#skip-changelog

ref: #1818

@jjbayer
jjbayer marked this pull request as ready for review March 20, 2023 09:04
@jjbayer
jjbayer requested a review from a team March 20, 2023 09:04
Base automatically changed from ref/deps-04 to master March 20, 2023 11:57

@jjbayer jjbayer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we also get rid of Registry::aggregator() or is it too early for that?


/// Holds the addresses of all services required for [`ProjectCache`].
#[derive(Debug, Clone)]
pub struct ProjectCacheContext {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit(naming): I would rename this to Services because it is a better description of what's inside. Other mods can then call project_cache::Services::new().

Or even better, call it AddressBook :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Even though I like the AddressBook, but still renamed it to Services for now 😄

@olksdr

olksdr commented Mar 21, 2023

Copy link
Copy Markdown
Contributor Author

Can we also get rid of Registry::aggregator() or is it too early for that?

There is still one place, where this is used and it will be cleaned up in the next PR.

@olksdr
olksdr enabled auto-merge (squash) March 21, 2023 06:45
@olksdr
olksdr merged commit 3cbfdd1 into master Mar 21, 2023
@olksdr
olksdr deleted the ref/deps-05 branch March 21, 2023 07:03
jan-auer added a commit that referenced this pull request Mar 21, 2023
* master:
  ref(utils): Remove from_registry from utils (#1947)
  feat(normalization): Trim logger smartly (#1941)
  ref(server): Track outcomes in retain_items (#1944)
  build(deps-dev): bump werkzeug from 2.2.2 to 2.2.3 (#1948)
  fix(build): Skip push to registry for dependabot (#1949)
  ref(processor) Inject dependencies into envelope processor service (#1946)
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