Skip to content

feat: pass accountId to resolveConfig #6733

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

Conversation

lemusthelroy
Copy link
Contributor

🎉 Thanks for submitting a pull request! 🎉

Summary

Passes accountId to resolveConfig() which is going to be used when fetching build events


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

Sorry, something went wrong.

@lemusthelroy lemusthelroy requested a review from a team as a code owner June 25, 2024 14:38
DanielSLew
DanielSLew previously approved these changes Jun 25, 2024
Copy link

github-actions bot commented Jun 25, 2024

📊 Benchmark results

Comparing with 37d8193

  • Dependency count: 1,213 (no change)
  • Package size: 313 MB (no change)
  • Number of ts-expect-error directives: 977 (no change)

@DanielSLew DanielSLew self-requested a review June 25, 2024 15:48
DanielSLew
DanielSLew previously approved these changes Jun 25, 2024
@@ -685,6 +687,7 @@ export default class BaseCommand extends Command {

try {
return await resolveConfig({
accountId: this.accountId,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious how we know we'll have accountId on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I share your curiosity because we do the same for siteId, but it seems to work, let me see

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah I understand, because we assign it to the actionCommand which is of type BaseCommand. This means that anything assigned to it will be available on this when the command is run. Happy I understand it now.

fwiw I tried just assigning it to this in the baseCommand itself but it doesn't persist

Copy link
Contributor

Choose a reason for hiding this comment

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

ah ok awesome!

…ture-flags-to-netlifyconfig-v2
@lemusthelroy lemusthelroy enabled auto-merge (squash) June 26, 2024 10:41
@lemusthelroy lemusthelroy merged commit 6ce285e into main Jun 26, 2024
48 checks passed
@lemusthelroy lemusthelroy deleted the lemusthelroy/cpla-1291-ensure-cli-passes-feature-flags-to-netlifyconfig-v2 branch June 26, 2024 10:41
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.

None yet

4 participants