Skip to content

chore(actor): Move ActorTuple to its own file so that it's not tied to models during import #69005

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

Merged
merged 5 commits into from
Apr 16, 2024

Conversation

wedamija
Copy link
Member

We want to use ActorTuple in the issue platform, but it causes a lot of import loops currently. Moving this to a separate place so it can more easily be imported

… to models during import

We want to use `ActorTuple` in the issue platform, but it causes a lot of import loops currently. Moving this to a separate place so it can more easily be imported
@wedamija wedamija requested review from a team as code owners April 16, 2024 17:24
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 16, 2024
Copy link
Member Author

@wedamija wedamija left a comment

Choose a reason for hiding this comment

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

Just moving things around, easiest to review with git diff --color-moved=dimmed_zebra master

user = user_service.get_by_username(username=actor_identifier)[0]
return cls(user.id, User)
except IndexError as e:
raise serializers.ValidationError(f"Unable to resolve actor identifier: {e}")

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
@wedamija wedamija merged commit ef66c63 into master Apr 16, 2024
47 checks passed
@wedamija wedamija deleted the danf/relocate-actor-tuple branch April 16, 2024 19:05
@github-actions github-actions bot locked and limited conversation to collaborators May 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants