# <span style="color:#038d99">Informal Learning Squad updates --- ## <span style="color:#038d99">Agenda 📜</span> 1. New `/certificates` endpoint in `assets-api` 2. GTM configs migration from GTM console to Gitlab repository 3. Migration of `solr-updater` 4. Search page updates --- ### <span style="color:#038d99">1. `/certificates` endpoint</span> ## Why and what we used? 1. Assets api already connected to GCP 2. Backend approach because it is easier to share the link with users 3. PDFlib - allows to use tamplates instead of creating cert from scratch ## File/folder structer on GCP - :open_file_folder: `apolitical-certificates` (buckets for each environment) - :open_file_folder: `templates` - :open_file_folder: `user-name` - :page_facing_up: `course-slug.pdf` - :open_file_folder: `certificates` - :page_facing_up: `course-slug.pdf` - :page_facing_up: default.pdf ## API request - endpoint: `https://rc.apolitical.co/api/assets-api/users/me/certificates` - body: ```json { "microcourseTitle": "How to spin on an office chair fast", "completionDate": "March 2022", "microcourseSlug": "how-to-spin-on-office-chair-fast" } ``` --- ## <span style="color:#038d99">GTM configs migration</span> 1. Custom Javascript Variables in GTM, but some of the functions are not working as expected. - Google console -> Google Tag Manager repo ![](https://i.imgur.com/QsqnDdE.png) - Removed PII Scrubber from being used as customTask in Acccess Tracker Values --- ### <span style="color:#038d99">Migration of `solr-updater`</span> --- Content Webhook 1. indexing internal content 2. indexing scraped content --- ### <span style="color:#038d99">Search page updates</span> - Sections with data to appear at the top 1. Optimised api calls (removed repeated requests) 2. Updated event card on styleguide 3. In govgraph courses are moved to the beggining of the array --- ## <span style="color:#038d99">Thank you! 🙏</span> ### Any Question ![](https://i.imgur.com/haaaEgJ.jpg =200x)
{"metaMigratedAt":"2023-06-16T22:19:36.324Z","metaMigratedFrom":"YAML","title":"Ingress controller with Treafik","breaks":true,"description":"View the slide with \"Slide Mode\".","slideOptions":"{\"theme\":\"serif\",\"transition\":\"convex\",\"transitionSpeed\":\"slow\",\"center\":true}","contributors":"[{\"id\":\"12bdb03b-b805-445b-ae74-3d99146f93a5\",\"add\":1893,\"del\":4357}]"}
    139 views