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 ActionScope and related code to :misk-action-scopes #2301

Conversation

JGulbronson
Copy link
Collaborator

The ActionScope code provides a nice way for applications and components to get contextual information based on incoming requests, job data, etc. It would be great to publish it as a separate library, so that we don't have to pull in all of Misk to use it.

@@ -36,7 +35,7 @@ class TestActionScopedProviderModule : ActionScopedProviderModule() {
) : ActionScopedProvider<String> {
override fun get(): String {
val seedData = seedData.get()
if (seedData == "unauthenticated") throw UnauthenticatedException()
if (seedData == "illegal-state") throw IllegalStateException()
Copy link
Collaborator

Choose a reason for hiding this comment

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

ah this changed because Unauthenticated is in misk-actions. got it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah exactly

@shellderp shellderp merged commit 4ebb509 into cashapp:master Mar 2, 2022
mmollaverdi added a commit to mmollaverdi/misk that referenced this pull request Mar 5, 2022
A recent PR, pulled the ActionScoped class out of the misk-actions subproject into a new misk-action-scopes subproject. This was a breaking change for any repositories having a dependency on misk-actions and using ActionScoped.
cashapp#2301

This commit adds an api dependency in misk-actions to misk-action-scopes, so that the misk-actions package included the classes from that dependency.
swankjesse pushed a commit that referenced this pull request Mar 7, 2022
A recent PR, pulled the ActionScoped class out of the misk-actions subproject into a new misk-action-scopes subproject. This was a breaking change for any repositories having a dependency on misk-actions and using ActionScoped.
#2301

This commit adds an api dependency in misk-actions to misk-action-scopes, so that the misk-actions package included the classes from that dependency.
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.

None yet

4 participants