benoitdm-oslandia / pg_featureserv

Apache License 2.0
1 stars 0 forks source link

Task - create a test to validate the weak eTag creation #36

Closed benoitdm-oslandia closed 1 year ago

benoitdm-oslandia commented 1 year ago

Idées :

SELECT pg_xact_commit_timestamp(xmin), * FROM YOUR_TABLE_NAME where ID=VALUE;
func getWeakETag (table, id) []byte {
    return cache[table][id] 
}

Tests:

Cache:

Headers:

Divers:

benoitdm-oslandia commented 1 year ago

marked this issue as related to #43

benoitdm-oslandia commented 1 year ago

marked this issue as related to #10

benoitdm-oslandia commented 1 year ago

cloned to #47

benoitdm-oslandia commented 1 year ago

marked this issue as related to #47

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 11, 2022, 11:33

marked the task écrire un test GET mock sans condition pour vérifier l'etag as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 11, 2022, 11:33

marked the task écrire un test GET DB sans condition pour vérifier l'etag as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 11, 2022, 11:34

marked the task écrire un test GET DB sans condition pour vérifier l'etag as incomplete

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 11, 2022, 11:34

marked the task écrire un test GET mock sans condition pour vérifier l'etag as incomplete

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:39

marked the task renommer les fonctions du cache pour qu'elles reflètent le type d'etag weak ou strong qu'elles concernent as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:39

marked the task intégrer les échanges d'etag via l'API sous forme encodée en Base64 as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:39

marked the task rédiger la fonction récupérant le weakETag en base si feature déjà présente as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:39

marked the task déplacer le cache des etags pour qu'il soit instancié par le catalogue as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:39

marked the task écrire un test GET mock sans condition pour vérifier l'etag as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:39

marked the task écrire un test GET mock sans condition pour vérifier l'etag as incomplete

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:39

marked the task écrire un test GET DB sans condition pour vérifier l'etag as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:40

marked the task écrire un test GET DB avec une condition If-None-Match sur l'etag as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:40

marked the task faire un jeu de tests à part pour les etags as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 14:48

marked the task dans les tests, vérifier que l'etag est bien le même après deux GET as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 15:39

marked the task écrire un test GET mock sans condition pour vérifier l'etag as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 14, 2022, 15:40

marked the task écrire un test GET mock avec une condition If-None-Match sur l'etag as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 19, 2022, 17:51

marked the task intégrer la valeur du weak etag dans la structure GeoJSON des features as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 20, 2022, 10:20

marked the task ajouter des paramètres à la fonction AddWeakEtag pour la rendre générique (à préciser) as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 20, 2022, 10:21

marked the task écrire un test vérifiant les etags WEAK et STRONG pour une même feature/représentation différente as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 21, 2022, 10:30

marked the task ajouter le last modified dans la réponse aux GET sur une feature -> https://git.oslandia.net/Client-projects/geoplateforme-ign-pg-featureserv/-/issues/71 as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 21, 2022, 10:30

marked the task implémenter le traitement du header If-None-Match sur le GET as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 21, 2022, 11:12

marked the task implémenter le traitement du header If-None-Match sur les autres méthodes CRUD (PUT/PATCH/?) -> https://git.oslandia.net/Client-projects/geoplateforme-ign-pg-featureserv/-/issues/72 as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 21, 2022, 11:12

marked the task implémenter le traitement du header If-Match et mettre à jour la documentation swagger -> https://git.oslandia.net/Client-projects/geoplateforme-ign-pg-featureserv/-/issues/73 as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 21, 2022, 11:12

marked the task ajouter une API REST pour décomposer un strong en weak -> https://git.oslandia.net/Client-projects/geoplateforme-ign-pg-featureserv/-/issues/74 as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 21, 2022, 11:13

marked the task intégrer le couple schema + table pour les requêtes en base -> https://git.oslandia.net/Client-projects/geoplateforme-ign-pg-featureserv/-/issues/75 as completed

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 26, 2022, 15:37

marked this issue as related to #51

benoitdm-oslandia commented 1 year ago

In GitLab by @nrevelant on Oct 30, 2022, 09:34

marked the task mettre à jour la documentation swagger pour If-None-Match as completed