Skip to content

feat(javascript): add waitForApiKey helper method #738

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

Merged
merged 4 commits into from
Jun 27, 2022

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Jun 23, 2022

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-514

Changes included:

The initial idea was to provide a guide for this solution, but due to the different way of ensuring the task has been processed, we decided to move to an helper method to ease the user journey.

We now provide a waitForApiKey helper method, similarly to waitForTask, but with stop condition matching what was introduced in v4.

🧪 Test

  • CI :D
  • Netlify preview

@netlify
Copy link

netlify bot commented Jun 23, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 47fa74d
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62b96392fd541200087b6fea

@algolia-bot
Copy link
Collaborator

algolia-bot commented Jun 23, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

@shortcuts shortcuts force-pushed the feat/javascript-add-wait-for-api-key branch from 8323151 to 8e1321a Compare June 24, 2022 08:13
@@ -25,13 +25,17 @@ type Prompt = {
interactive: boolean;
};

export function getClientChoices(job: Job, language?: LangArg): string[] {
const withoutAlgoliaSearch = PROMPT_CLIENTS.filter(
export function getClientChoices(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for this change, all was not allowed anymore 👼🏼

@shortcuts shortcuts force-pushed the feat/javascript-add-wait-for-api-key branch from ea9b088 to c809fb4 Compare June 24, 2022 08:38
@shortcuts shortcuts force-pushed the feat/javascript-add-wait-for-api-key branch from c809fb4 to 64163f4 Compare June 24, 2022 10:25
@shortcuts shortcuts force-pushed the feat/javascript-add-wait-for-api-key branch from 64163f4 to 9ed5b78 Compare June 24, 2022 11:02
@shortcuts shortcuts requested review from a team, damcou and millotp and removed request for a team June 24, 2022 11:04
@shortcuts shortcuts self-assigned this Jun 24, 2022
@shortcuts shortcuts marked this pull request as ready for review June 24, 2022 11:05
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ! I'm still unsure this is really used, we should stop putting helpers everywhere ahah

Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice !

@shortcuts shortcuts merged commit 2288d17 into main Jun 27, 2022
@shortcuts shortcuts deleted the feat/javascript-add-wait-for-api-key branch June 27, 2022 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants