assemblee-virtuelle / assemblee-virtuelle/semapps

Use PATCH instead of PUT in data provider

Open
#676 0 comments 0 reactions 0 assignees View on GitHub
data-provider
Dominant language
TypeScript
Stars
103
Forks
14
Avg merge
1m
Merged PRs (30d)
2

Description

**Issuel**
In the data provider, we currently use a PUT request to update data. The problem is that if two people update the same data, there's a risk that one person's update will be overwritten by the other's update.

**Proposal**
Just as, on the middleware side, we now do https://github.com/assemblee-virtuelle/semapps/pull/664 a diff to update data, we could do a diff on the frontend that would allow PATCH requests rather than PUT.

> See if we can mutualize code between middleware and frontend.

**Components concerned**
Semantic data provider

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Semantic data provider and compare its current PUT update flow with the middleware diff approach referenced in pull request 664. Investigate whether the diff logic can be shared between the frontend and middleware; done means updates use PATCH without overwriting unrelated concurrent changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.