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

Fix: Node Update API Payload Structure and Data Handling #2596

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

aliraza556
Copy link
Contributor

@aliraza556
Copy link
Contributor Author

Hi @tomsmith8, @Rassl, Please review this PR.

@aliraza556 aliraza556 requested a review from Rassl January 6, 2025 18:52
updateNode: (updatedNode) => {
console.info(updatedNode)
updateNode: (updatedNode: NodeExtended) => {
set((state) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

const { nodesNormalized } = get()
nodesNormalized.set(...)

set({ nodeNormalized })

dm me if I missing something

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Rassl Please review again

@aliraza556 aliraza556 force-pushed the fix/node-update-payload-structure branch from e7c0f88 to ddc3109 Compare January 7, 2025 03:08
@aliraza556 aliraza556 requested a review from Rassl January 7, 2025 03:09
@Rassl Rassl merged commit 8d0a0b7 into stakwork:master Jan 7, 2025
17 checks passed
@tomsmith8
Copy link
Contributor

@aliraza556 when I change the value, the new key value pairs are not passed into the PUT request.

I chnaged Kevin to kevkevin:
sphinx tue 07 jan 01 50 12

PUT request:
sphinx tue 07 jan 01 50 14

@tomsmith8
Copy link
Contributor

all the properties with their new value from the modal should be passed into the properties object. And the frontend state should be updated

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.

PUT /node request sending incorrect data
3 participants