Skip to content

Notes publish#66

Open
richardssam wants to merge 15 commits intoAcademySoftwareFoundation:mainfrom
richardssam:notes_publish
Open

Notes publish#66
richardssam wants to merge 15 commits intoAcademySoftwareFoundation:mainfrom
richardssam:notes_publish

Conversation

@richardssam
Copy link
Collaborator

This partially addresses #58

I do not handle Include notes from other reviewers, so do need to review that, but otherwise it should be working.

NOTE, I have updated the shotgun provider to use sudo_as_login, so the person publishing the notes needs permissions to do the write. I do need to double check that this is working as expected. Also its worth double checking that your on-prem shotgun server supports this, since older ones may not.

- Add [publish_note](cci:1://file:///Users/sam/git/dna/backend/src/dna/prodtrack_providers/shotgrid.py:601:4-699:27) method to ShotGrid provider with duplicate checking
- Implement [sudo](cci:1://file:///Users/sam/git/dna/backend/src/dna/prodtrack_providers/shotgrid.py:179:4-199:55) context manager for author attribution, taking advantage of the sudo_as_login property.
- Add `/publish-notes` and `/draft-notes` endpoints
- Add PublishNotesRequest/Response models
- Add unit tests for provider and endpoints

Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
- Add `PublishNotesDialog` component
- Create `usePublishNotes` and `usePlaylistDraftNotes` hooks
- Add API methods for publishing
- Add "Publish Notes" button to Sidebar

Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
   * adding methods for notes publishing.

Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
…t it as a new "publish".

- Update MongoDB storage provider to set published=False on update or insert if not specified
- Add regression test case and necessary test mocks"
- invalidate "draftNotes" query key after successful draft note update.

Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
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.

1 participant