-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add users #172
base: main
Are you sure you want to change the base?
Add users #172
Conversation
Nice :) Two ideas that came to mind:
For future proofing and to not assume the services used (now and in the future). We don't need to use the extra functionality now but perhaps have the data structure ready. Edit: thinking about it again, this is probably not important for the indexed data, but more something to consider for the actual actions sent to Poster. |
Yeah, I thought about this approach as well. Was considering a That said, this approach could perhaps enable user-defined metadata. Somethign like this, for example. "metadata": [
{
"title": "Twitter",
"content": "@auryn_macmillan"
},
{
"title": "Homepage",
"content: "https://link.to.some.page"
}
] I also like this because it doesn't enshrine other services at the subgraph level. |
I like this approach, where we don't enshrine specific services. But do you mean saving it as a JSON formatted key-value string in the subgraph or in the action sent to Poster? |
I also like the metadata approach, but maybe a simpler solution would be to just allow markdown (or ideally rich text converted to markdown) in a
|
Description
This PR adds a user entity to the subgraph. User's can have both a default profile, along with publication specific profiles associated with the same address. Profiles include these properties:
id
,displayName
,profilePicture
,link
,twitter
,github
,permissions
,articles
, andpublications
.Implementation
A new entity,
User
, is defined in the schema.Accounts should be able to create and modify their user profile by calling the Poster contract with a
user/update
action.Accounts should be able to delete their user profiles by calling the Poster contract with a
user/delete
action.Additional Context
The user entity will be used initially to add richer profile information for authors. However, any user can create a profile and these could later be exposed in the app in a number of ways (likes, comments, reactions, patronage, etc).