-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Permet plus d'option d'environnements de test (#765)
* shorten contact fields in declaration page * adjust derogation block spacing and fields order * update component to add custom test environments * remove version fields and migrate database * display test environments in statement (edit and index) and context pages * fix env combinations table caption * update changelog * fix test environments table in context page
- Loading branch information
1 parent
9b057da
commit fc1231d
Showing
15 changed files
with
180 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...rest-api/prisma/migrations/20240717150619_remove_environment_version_fields/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `assistiveTechnologyVersion` on the `TestEnvironment` table. All the data in the column will be lost. | ||
- You are about to drop the column `browserVersion` on the `TestEnvironment` table. All the data in the column will be lost. | ||
- You are about to drop the column `operatingSystemVersion` on the `TestEnvironment` table. All the data in the column will be lost. | ||
- A unique constraint covering the columns `[platform,operatingSystem,assistiveTechnology,browser,auditUniqueId]` on the table `TestEnvironment` will be added. If there are existing duplicate values, this will fail. | ||
*/ | ||
|
||
-- DropIndex | ||
DROP INDEX "TestEnvironment_platform_operatingSystem_operatingSystemVer_key"; | ||
|
||
/* | ||
Merge: | ||
- "operatingSystem" and "operatingSystemVersion" | ||
- "browser" and "browserVersion" | ||
- "assistiveTechnology" and "assistiveTechnologyVersion" | ||
*/ | ||
UPDATE | ||
"TestEnvironment" | ||
SET | ||
"operatingSystem" = | ||
CASE | ||
WHEN "operatingSystemVersion" IS NOT NULL | ||
THEN "operatingSystem" || ' ' || "operatingSystemVersion" | ||
END, | ||
|
||
"browser" = | ||
CASE | ||
WHEN "browserVersion" IS NOT NULL | ||
THEN "browser" || ' ' || "browserVersion" | ||
END, | ||
|
||
"assistiveTechnology" = | ||
CASE | ||
WHEN "assistiveTechnologyVersion" IS NOT NULL | ||
THEN "assistiveTechnology" || ' ' || "assistiveTechnologyVersion" | ||
END; | ||
|
||
-- AlterTable | ||
ALTER TABLE "TestEnvironment" DROP COLUMN "assistiveTechnologyVersion", | ||
DROP COLUMN "browserVersion", | ||
DROP COLUMN "operatingSystemVersion"; | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "TestEnvironment_platform_operatingSystem_assistiveTechnolog_key" ON "TestEnvironment"("platform", "operatingSystem", "assistiveTechnology", "browser", "auditUniqueId"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.