z-arnott / Vega

0 stars 0 forks source link

Storage facade #19

Closed rhass-uta closed 1 year ago

rhass-uta commented 1 year ago

I present to you the STORAGE FACADE - ish!

Key elements in this component are:

  1. supabase.ts - which initates connect with supabase db
  2. types.utils.ts - which specifies all the different interfaces
  3. storageFacde.utils - which is where the read, write, delete, update functions for vulnerabilities and packages live
  4. storageFacade.test - for the tests!

what this can currently do: read,write,delete,update packages & vulnerabilities (usually using packageid or sessionid or cveid)

what is not here yet: sorting, filtering, API piece, write for junction table (no need to read since it's simply used for filtering), purge all data

when you're reviewing:

  1. checkout supabase tables (it'll click a lot more)
  2. review that whatever is being used as a param will acc be available (from the previous component) if you call that func
  3. review interfaces in here for missing columns/info that will be or not provided by previous component
z-arnott commented 1 year ago

Looks great! Please just resolve the comment on .vscode/launch.json and then merge!