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

Lexicon: Replace all user parameters with actor or repo #655

Merged
merged 6 commits into from
Mar 14, 2023

Conversation

dholms
Copy link
Collaborator

@dholms dholms commented Mar 13, 2023

Remove vague "user" references.

If in the com.atproto namespace, we use "repo"
If in the app.bsky, we use "actor"

Closes #591
Closes #548

@dholms dholms changed the base branch from main to lex/new-types-and-formats March 13, 2023 22:47
"parameters": {
"type": "params",
"required": ["author"],
"required": ["actor"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I took a bit of liberty here & changed it to actor even tho it wasn't ambiguous like user. Let me know if you disagree

@dholms dholms marked this pull request as ready for review March 13, 2023 23:21
Copy link
Collaborator

@devinivy devinivy left a comment

Choose a reason for hiding this comment

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

Smooth!

@devinivy
Copy link
Collaborator

devinivy commented Mar 14, 2023

Ooh, found one little thing I wonder if we oughtta tidy-up while we're in here. There's a field called reportedByDid in the admin/moderation stuff within com.atproto. I wonder if we just change that to reportedBy for consistency since that Did suffix isn't used anywhere else. That was me, oops!

@devinivy
Copy link
Collaborator

I just pushed up that change I mentioned above— we can always revert if we'd rather not include it 👍

@dholms
Copy link
Collaborator Author

dholms commented Mar 14, 2023

Nope I like it! & now that we have formats, it's totally clear what the value is supposed to be by looking at the schema 👍

Base automatically changed from lex/new-types-and-formats to lex-refactor March 14, 2023 16:28
@dholms dholms merged commit 3d2c737 into lex-refactor Mar 14, 2023
@dholms dholms deleted the lex/xprc-user-params branch March 14, 2023 18:04
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

2 participants