Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache JsonLD contexts #778

Merged
merged 11 commits into from
Jun 2, 2021
Merged

Cache JsonLD contexts #778

merged 11 commits into from
Jun 2, 2021

Conversation

srosset81
Copy link
Contributor

@srosset81 srosset81 commented May 28, 2021

Closes #533
Closes #725

Crée un nouveau service jsonld qui permet d'ajouter des contextes locaux (sans avoir à configurer l'ApiGateway) et qui garde en cache les contextes qui ont été déjà chargés lors des opérations de compact/frame/expand. Ce qui évite notamment d'avoir à appeler le fichier /context.json 50 fois lors de certaines opérations.

Breaking changes

Un nouveau service jsonld doit être configuré pour utiliser les services ldp, triplestore, webacl et inference.
Et il faut supprimer l'ajout de la route sur l'ApiGateway.
Voir https://github.com/assemblee-virtuelle/semapps/pull/778/files#diff-bbe4b0510fb8264e212e78b6818b28c00cabe3cd17e54172d072129aa00a814eR1-R16

@vercel
Copy link

vercel bot commented May 28, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

website – ./website

🔍 Inspect: https://vercel.com/semapps/website/DtpVyoAm72qUR7LbZQvbcTVkRMoK
✅ Preview: Canceled

[Deployment for 97f75a2 canceled]

archipel – ./src/frontend

🔍 Inspect: https://vercel.com/semapps/archipel/3yHkiWmJH1nmneryxxQz5biAdy1B
✅ Preview: Canceled

[Deployment for 97f75a2 canceled]

@vercel vercel bot temporarily deployed to Preview – website May 28, 2021 16:28 Inactive
@vercel vercel bot temporarily deployed to Preview – archipel May 28, 2021 16:28 Inactive
srosset81 added 2 commits May 31, 2021 17:46
…e_jsonld_contexts

# Conflicts:
#	src/middleware/packages/jsonld/mixin.js
@vercel vercel bot temporarily deployed to Preview – archipel May 31, 2021 15:46 Inactive
@vercel vercel bot temporarily deployed to Preview – website May 31, 2021 15:46 Inactive
@srosset81 srosset81 marked this pull request as ready for review May 31, 2021 15:47
@srosset81 srosset81 requested a review from simonLouvet May 31, 2021 15:47
@vercel vercel bot temporarily deployed to Preview – archipel May 31, 2021 15:47 Inactive
@vercel vercel bot temporarily deployed to Preview – website May 31, 2021 15:47 Inactive
@vercel vercel bot temporarily deployed to Preview – archipel May 31, 2021 16:05 Inactive
@vercel vercel bot temporarily deployed to Preview – website May 31, 2021 16:05 Inactive
@vercel vercel bot temporarily deployed to Preview – website May 31, 2021 16:07 Inactive
@vercel vercel bot temporarily deployed to Preview – archipel May 31, 2021 16:07 Inactive
@vercel vercel bot temporarily deployed to Preview – archipel May 31, 2021 16:09 Inactive
@vercel vercel bot temporarily deployed to Preview – website May 31, 2021 16:09 Inactive
@vercel vercel bot temporarily deployed to Preview – website June 1, 2021 08:40 Inactive
@vercel vercel bot temporarily deployed to Preview – archipel June 1, 2021 08:40 Inactive
@vercel vercel bot temporarily deployed to Preview – website June 1, 2021 08:41 Inactive
@vercel vercel bot temporarily deployed to Preview – archipel June 1, 2021 08:41 Inactive
@srosset81 srosset81 merged commit 1e46430 into master Jun 2, 2021
@srosset81 srosset81 deleted the cache_jsonld_contexts branch June 2, 2021 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Les tests d'intégration échouent parfois sur Github Précharger les contextes souvent utilisés.
1 participant