Skip to content

[Feat] Update Record in Notion Database #69

@Nabhag8848

Description

@Nabhag8848

What do we need?

  • Currently Once the Record is created using /notion create we don't have anyway to update that record from rc. lets say org is keeping track of project they are working on - in Notion Database and there is extension of project deadline, or it needs to assign to different person, xyz, etc. we can't do it currently which is needed and happens often.

  • we want to implement a button on the message that has been send on creation - update record particularly a message box action button which exist on every message. This button should only exist on that creation message.

  • Open the Modal (Similar to Creation Record Modal particular when database is selected that view) with All the input Elements with initial value which is part of that record, Every Creation Message would have one particular record attached from database right, get that values through api first and open the modal with elements you need and give the current value of record to default value to elements, have the elements according to type of value, for reference use the code we already have for creation record.

  • similar modal we already have in create record feature right ? and update those fields which needed to be in one go in input elements the one which are not updated in the input fields doesn't matter cause we can make the request of changed value and default which wasn't changed and update the fields through API. This allows to make multiple fields change in one go.

  • Once the fields are filled, and updated through api when from modal the user presses Update (SubmitAction - BlueButton) We need to Update the Creation Message Particular from where the MessageBox Action was initiated, we need to update the message with new fields which were updated during the updation.

  • Also Make sure We handle ViewErrors,

  • Also Handle If when the there is update action button pressed the user is connected to workspace in which that database exist if not notify user you are connected to different workspace.

  • In this case, We currently don't have goal for menu actions: But make sure its scalable if we might need to include OverFlowAction Menu which is create database + create page or record which we should be able to do.

  • For Reference Check the Create Record Codebase you can find lot of code which will help you, you will need to know in depth things about how we are caching data with persistance storage.

Acceptance Criteria

  • Have a Message Box Action on creation message only - update record.
  • Opens Modal with Default Value
  • Checks the ViewErrors
  • Handles Incorrect Workspace connected on Message box action
  • Update the Creation Message to updated fields value
  • should be scalable to include overflowmenu actions later
  • It shouldn't break anything else🙏🏻🥹

Relevant ScreenShots

  • Include Update Record in Message Box Action of Creation Message
  • Update Record Modal Reference
Update Modal

Further Comments

  • Good Luck !! This is much needed and Hardest Features to Implement from all the Features in Notion App

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions