Skip to content

Conversation

@merlinnot
Copy link
Contributor

@merlinnot merlinnot commented Jul 3, 2019

Description

This PR moves definitions related to configuration options to functions-configuration, as it causes an import cycle.

This PR contains some changes made automatically by Prettier and TSLint, it will be gone once #493 is merged.

Code sample

Not relevant.

@merlinnot
Copy link
Contributor Author

@thechenky Unfortunately I don't have permissions to assign you as a reviewer, as requested in the previous PR.

@thechenky thechenky self-requested a review July 3, 2019 16:12
@thechenky
Copy link
Contributor

This still has formatting and lint changes ya? Let's remove those - I approved the lint/format PR and can merge that in now.

@merlinnot
Copy link
Contributor Author

I thought you'll just merge the other PR straight away, so I can rebase this one. I have my editor set up to autofix and autoformat on save, hence these changes were applied to all of the files I touched. I reverted it manually. What's the process of merging PRs? Do we need more reviews first?

@thechenky
Copy link
Contributor

I merged the other two PRs, can you update with master? It should remove the extra formatting changes too.

@thechenky
Copy link
Contributor

Ah sorry missed your last comment - we should be good to go, I forgot I'm supposed to do the merging since you can't push that button :)

@merlinnot
Copy link
Contributor Author

Only you have the power to do that ;) I've merged master, Travis takes a long time to run today, after yesterdays incident they still have a large backlog of jobs.

@thechenky
Copy link
Contributor

Just merged #492 also

@thechenky
Copy link
Contributor

Nice, this now looks like only relevant changes. Reviewing now :)

Copy link
Contributor

@thechenky thechenky left a comment

Choose a reason for hiding this comment

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

Small nits, otherwise LGTM. Thank you for this refactor, it really makes things more clear and readable!

@merlinnot
Copy link
Contributor Author

@thechenky When I was working on the comments, I made a small change to stricten type definitions for regions, hope that's fine -> 22b6d0b.

Copy link
Contributor

@thechenky thechenky left a comment

Choose a reason for hiding this comment

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

LGTM.

@thechenky thechenky merged commit b3566bf into firebase:master Jul 3, 2019
@merlinnot merlinnot deleted the extract-config branch July 3, 2019 21:15
@thechenky
Copy link
Contributor

thechenky commented Jul 3, 2019

@merlinnot hm, I just ran the integration tests on master after merging this in, and they are failing on the deploy step with TS errors:

image

@thechenky
Copy link
Contributor

It works if I remove the as const for SUPPORTED_REGIONS and VALID_MEMORY_OPTIONS.

@merlinnot
Copy link
Contributor Author

I'll check that.

@thechenky
Copy link
Contributor

Unless there's something we can do to make this work with keeping as const I have a fix in #497.

@thechenky
Copy link
Contributor

Actually, master integration tests being broken will block releases for GCF, so I'm going to submit the fix now and if we figure out a way to make it work with original version, we can add that in later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants