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

chore: add site notes and site instructions #923

Closed
wants to merge 10 commits into from

Conversation

ajabeckett
Copy link
Contributor

Description

Adds site notes to sites. A site can have many site notes, each with a different author. Also adds optional site instructions to project: a project can only have one site_instructions, owned by the project owner.

Related Issues

Fixes #863

@ajabeckett ajabeckett changed the title Chore/add site notes chore: add site notes and site instructions Oct 26, 2023
@ajabeckett ajabeckett requested a review from josebui October 26, 2023 18:44
interfaces = (graphene.relay.Node,)


class SiteNoteAddMutation(graphene.Mutation):
Copy link
Contributor

Choose a reason for hiding this comment

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

Issue: I think the mutations in this files are not authenticating the users, you can extend these classes from the classes in https://github.com/techmatters/terraso-backend/blob/main/terraso_backend/apps/graphql/schema/commons.py#L182 (BaseWriteMutation, BaseAuthenticatedMutation) to add that automatically

@ajabeckett ajabeckett closed this Oct 27, 2023
@ajabeckett ajabeckett deleted the chore/add-site-notes branch October 27, 2023 22:54
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.

Add site notes and project instructions to models and GraphQL schema
2 participants