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 events.go out of internal/authenticateflow #4852

Merged
merged 2 commits into from Dec 12, 2023
Merged

Conversation

kenjenkins
Copy link
Contributor

Summary

Commit b7896b3 moved events.go from the 'authenticate' package to 'internal/authenticateflow' in order to avoid an import cycle. However this location is not actually suitable, as the hosted authenticate service refers to AuthEvent and AuthEventFn.

Move events.go back out from under 'internal', to a new package 'authenticate/events'. This should still avoid an import cycle between 'authenticate' and 'internal/authenticateflow', while also allowing the hosted authenticate service to use the events types.

Related issues

User Explanation

Checklist

  • reference any related issues
  • updated docs
  • updated unit tests
  • updated UPGRADING.md
  • add appropriate tag (improvement / bug / etc)
  • ready for review

Commit b7896b3 moved events.go from the 'authenticate' package to
'internal/authenticateflow' in order to avoid an import cycle. However
this location is not actually suitable, as the hosted authenticate
service refers to AuthEvent and AuthEventFn.

Move events.go back out from under 'internal', to a new package
'authenticate/events'. This should still avoid an import cycle between
'authenticate' and 'internal/authenticateflow', while also allowing the
hosted authenticate service to use the events types.
@coveralls
Copy link

coveralls commented Dec 12, 2023

Coverage Status

coverage: 59.919% (+0.004%) from 59.915%
when pulling da6af74 on kenjenkins/auth-event
into c5f7519 on main.

@kenjenkins kenjenkins marked this pull request as ready for review December 12, 2023 01:46
@kenjenkins kenjenkins requested a review from a team as a code owner December 12, 2023 01:46
@kenjenkins kenjenkins merged commit 1dbe441 into main Dec 12, 2023
11 checks passed
@kenjenkins kenjenkins deleted the kenjenkins/auth-event branch December 12, 2023 03:42
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

3 participants