Changes between Initial Version and Version 1 of FavoriteBuild


Ignore:
Timestamp:
12/28/25 23:36:56 (10 hours ago)
Author:
233051
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FavoriteBuild

    v1 v1  
     1== User opens dashboard ==
     2
     3=== Actors ===
     4User, Admin
     5
     6=== Scenario ===
     71. The user opens the completed builds page, opens the details popup for a build
     82. The user can click on the "ADD TO FAVORITES" button to toggle whether the build is favorited or not
     9
     10{{{
     11SELECT 1
     12FROM favorite_build
     13WHERE user_id = $userId AND build_id = $buildId
     14LIMIT 1;
     15
     16-- if favorite
     17DELETE FROM favorite_build
     18WHERE user_id = $userId AND build_id = $buildId;
     19
     20-- if NOT favorite
     21INSERT INTO favorite_build (user_id, build_id)
     22VALUES ($userId, $buildId);
     23}}}