Skip to content

Add delete user vscode_settings endpoint

What does this MR do and why?

It adds an endpoint that allows deleting all vs_code_setting records for a given user. Notice Users can only have one vs_code_setting record per allowed setting type.

Screenshots or screen recordings

This Merge Request does not contain user-facing changes.

Query plan

-- Queries

DELETE FROM "vs_code_settings" WHERE "vs_code_settings"."id" = :id

--Query plan
ModifyTable on public.vs_code_settings  (cost=0.00..0.00 rows=0 width=0) (actual time=0.006..0.007 rows=0 loops=1)
   I/O Timings: read=0.000 write=0.000
   ->  Seq Scan on public.vs_code_settings  (cost=0.00..0.00 rows=1 width=6) (actual time=0.004..0.005 rows=0 loops=1)
         Filter: (vs_code_settings.id = 14)
         Rows Removed by Filter: 0
         I/O Timings: read=0.000 write=0.000

How to set up and validate locally

  1. Create one or more vs_code_setting records.
  2. Hit the endpoint implemented in this Merge Request using the HTTP DELETE method.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #428324 (closed)

Edited by Enrique Alcántara

Merge request reports