This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
feat: download and store Airtable images #2926
Merged
Merged
Conversation
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 reverts commit 678d134.
y4izus
suggested changes
Jan 24, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general looks great for me Eddy! Thank you very much! I have only 4 comments/requests :D
Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com>
y4izus
approved these changes
Jan 25, 2023
y4izus
added a commit
that referenced
this pull request
Feb 1, 2023
* refactor: script setup in "advocates" components * refactor: script setup in "blockbuster" components * refactor: script setup in "ecosystem" components * refactor: script setup in "events" components * refactor: script setup in "global" components * refactor: script setup in "landing" components * refactor: script setup in "layouts" components * feat: Use qiskit-banner web component (#2921) * feat: use qiskit banner component * feat: update qiskit banner component styles * feat: update qiskit banner alignment * fix: Broken links to ignis (#2930) * refactor: script setup in "learn" components * feat: Update unstable terminal commands (#2904) * update unstable terminal commands * update quick start install instructions * feat: update code cell snippet * Update components/landing/TheQiskitCapabilitiesSection/CodeCell.vue Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com> * feat: refactor install instructions * feat: refactor app links and logic * feat: refactor instructions logic Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com> Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * feat(airtable): remove hardcoded field names (#2913) * feat: replace field names with field IDs * feat: get field names from field IDs * feat: set all field names * refactor: reuse Airtable base ID * feat: less console errors * fix: replace hardcoded field name * chore: move line of code * feat: get all field names to perform operations * refactor: reuse view * chore: update fetched events data * feat: get field names from IDs * Revert "chore: update fetched events data" This reverts commit 678d134. * refactor: DRY getFieldName function * refactor: DRY getAllFieldNames function * docs: correct returns types syntax * refactor: rewrite as class * refactor: rewrite as class * refactor: extend generic class AirtableRecord * fix: lint issues * fix(airtable): use correct views * refactor(airtable): meaningful class names * fix(airtable): use correct "type" field ID * refactor(airtable): reuse "recordFields" property * feat(airtable): make class method private * style: shorter if statement Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * refactor: script setup in "metal" components * refactor: script setup in "overview" components * fix(site-wide): tab component styling (#2925) * Add quantum circuits page (#2923) * Add preview of new quantum circuits page * Update name for lesson 4 (Entanglement in action) * feat: download and store Airtable images (#2926) * feat: replace field names with field IDs * feat: get field names from field IDs * feat: set all field names * refactor: reuse Airtable base ID * feat: less console errors * fix: replace hardcoded field name * chore: move line of code * feat: get all field names to perform operations * refactor: reuse view * chore: update fetched events data * feat: get field names from IDs * Revert "chore: update fetched events data" This reverts commit 678d134. * refactor: DRY getFieldName function * refactor: DRY getAllFieldNames function * docs: correct returns types syntax * refactor: rewrite as class * refactor: rewrite as class * refactor: extend generic class AirtableRecord * fix: lint issues * fix(airtable): use correct views * refactor(airtable): meaningful class names * fix(airtable): use correct "type" field ID * feat(advocates): store images locally * feat(events): store images locally * feat(airtable): use record ID for image name * feat(airtable): track directories for downloads * fix(airtable): image public paths * test(airtable): storeImage * feat(airtable): remove files age check * refactor(airtable): use ID from class property * style: lint * feat(airtable): handle axios errors & write files async * style: one-liner Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * refactor: simplify store function Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * refactor: script setup in "ui" components * feat(learn): Show Account Button in Learn Pages (#2931) * Issue 2866 Show Account Button in Learn Page * refactor: Reused default-max layout * fix: restore the content of package-lock.json * Shows the account button for all learning pages --------- Co-authored-by: Maria Hernández <maria.hernandez.baeza@ibm.com> Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * feat: adds photos downloaded from airtable to .gitignore (#2953) * chore: add TODO * chore: remove unused variable * feat(data-table)): require "columns" prop * chore(data-table): remove unused prop * fix(data-table): require prop * refactor(basic-link): simplify code * chore: remove unused component * style: camel case variable * style: camel case variable * style: computed method naming * fix(capability-card): computed syntax * refactor(metal): function names and syntax * chore: remove unnecessary "void" * feat(advocate-card): make props optional * refactor(advocates): function syntax * chore: add TODO to check functionality later * feat: use "Script Setup" in pages (#2937) * refactor: script setup in pages * feat(blockbuster): remove page * style: remove unnecessary type declaration * Updates package-lock --------- Co-authored-by: Randy <randytolentino@ibm.com> Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com> Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk> Co-authored-by: Maria <89911196+mariacloehb@users.noreply.github.com> Co-authored-by: Maria Hernández <maria.hernandez.baeza@ibm.com>
y4izus
added a commit
that referenced
this pull request
Feb 9, 2023
* refactor: script setup in "advocates" components * refactor: script setup in "blockbuster" components * refactor: script setup in "ecosystem" components * refactor: script setup in "events" components * refactor: script setup in "global" components * refactor: script setup in "landing" components * refactor: script setup in "layouts" components * feat: Use qiskit-banner web component (#2921) * feat: use qiskit banner component * feat: update qiskit banner component styles * feat: update qiskit banner alignment * fix: Broken links to ignis (#2930) * refactor: script setup in "learn" components * feat: Update unstable terminal commands (#2904) * update unstable terminal commands * update quick start install instructions * feat: update code cell snippet * Update components/landing/TheQiskitCapabilitiesSection/CodeCell.vue Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com> * feat: refactor install instructions * feat: refactor app links and logic * feat: refactor instructions logic Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com> Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * feat(airtable): remove hardcoded field names (#2913) * feat: replace field names with field IDs * feat: get field names from field IDs * feat: set all field names * refactor: reuse Airtable base ID * feat: less console errors * fix: replace hardcoded field name * chore: move line of code * feat: get all field names to perform operations * refactor: reuse view * chore: update fetched events data * feat: get field names from IDs * Revert "chore: update fetched events data" This reverts commit 678d134. * refactor: DRY getFieldName function * refactor: DRY getAllFieldNames function * docs: correct returns types syntax * refactor: rewrite as class * refactor: rewrite as class * refactor: extend generic class AirtableRecord * fix: lint issues * fix(airtable): use correct views * refactor(airtable): meaningful class names * fix(airtable): use correct "type" field ID * refactor(airtable): reuse "recordFields" property * feat(airtable): make class method private * style: shorter if statement Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * refactor: script setup in "metal" components * refactor: script setup in "overview" components * fix(site-wide): tab component styling (#2925) * Add quantum circuits page (#2923) * Add preview of new quantum circuits page * Update name for lesson 4 (Entanglement in action) * feat: download and store Airtable images (#2926) * feat: replace field names with field IDs * feat: get field names from field IDs * feat: set all field names * refactor: reuse Airtable base ID * feat: less console errors * fix: replace hardcoded field name * chore: move line of code * feat: get all field names to perform operations * refactor: reuse view * chore: update fetched events data * feat: get field names from IDs * Revert "chore: update fetched events data" This reverts commit 678d134. * refactor: DRY getFieldName function * refactor: DRY getAllFieldNames function * docs: correct returns types syntax * refactor: rewrite as class * refactor: rewrite as class * refactor: extend generic class AirtableRecord * fix: lint issues * fix(airtable): use correct views * refactor(airtable): meaningful class names * fix(airtable): use correct "type" field ID * feat(advocates): store images locally * feat(events): store images locally * feat(airtable): use record ID for image name * feat(airtable): track directories for downloads * fix(airtable): image public paths * test(airtable): storeImage * feat(airtable): remove files age check * refactor(airtable): use ID from class property * style: lint * feat(airtable): handle axios errors & write files async * style: one-liner Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * refactor: simplify store function Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * refactor: script setup in "ui" components * feat(learn): Show Account Button in Learn Pages (#2931) * Issue 2866 Show Account Button in Learn Page * refactor: Reused default-max layout * fix: restore the content of package-lock.json * Shows the account button for all learning pages --------- Co-authored-by: Maria Hernández <maria.hernandez.baeza@ibm.com> Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> * feat: adds photos downloaded from airtable to .gitignore (#2953) * chore: add TODO * chore: remove unused variable * feat(data-table)): require "columns" prop * chore(data-table): remove unused prop * fix(data-table): require prop * refactor(basic-link): simplify code * chore: remove unused component * style: camel case variable * style: camel case variable * style: computed method naming * fix(capability-card): computed syntax * refactor(metal): function names and syntax * chore: remove unnecessary "void" * feat(advocate-card): make props optional * refactor(advocates): function syntax * chore: add TODO to check functionality later * feat: use "Script Setup" in pages (#2937) * refactor: script setup in pages * feat(blockbuster): remove page * style: remove unnecessary type declaration * Updates package-lock --------- Co-authored-by: Randy <randytolentino@ibm.com> Co-authored-by: Yaiza <yaiza.garcia.mm@gmail.com> Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com> Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk> Co-authored-by: Maria <89911196+mariacloehb@users.noreply.github.com> Co-authored-by: Maria Hernández <maria.hernandez.baeza@ibm.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
This pull request addresses an issue caused by Airtable's recent change to make the URLs of attachments expire after a couple of hours. The problem was that the profile pictures for advocates were not being displayed.
As recommended by Airtable, we need to download the files during the API fetch and store them on our end so that they remain accessible.
Closes #2894
Implementation details
How to read this PR