Skip to content

Add apollo custom extension to replace apollo_ prefix#1183

Merged
designatednerd merged 4 commits intoapollographql:masterfrom
yuzushioh:apolloprefix
May 7, 2020
Merged

Add apollo custom extension to replace apollo_ prefix#1183
designatednerd merged 4 commits intoapollographql:masterfrom
yuzushioh:apolloprefix

Conversation

@yuzushioh
Copy link
Copy Markdown
Contributor

@yuzushioh yuzushioh commented May 3, 2020

Added ApolloExtension and replace apollo_ prefix by apollo. ref: #1170

@apollo-cla
Copy link
Copy Markdown

@yuzushioh: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@yuzushioh yuzushioh changed the title [WIP] Add apollo custom extension to replace apollo_ prefix Add apollo custom extension to replace apollo_ prefix May 3, 2020
@yuzushioh
Copy link
Copy Markdown
Contributor Author

@designatednerd testWatchedQueryGetsUpdatedWithListReorderingFromOtherQuery is failing for some reason. I am not sure if it's because of my change

@designatednerd
Copy link
Copy Markdown
Contributor

@yuzushioh Prooooobably not, that test is super flaky, I'll kick it

Copy link
Copy Markdown
Contributor

@designatednerd designatednerd left a comment

Choose a reason for hiding this comment

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

One minor thing but otherwise this is looking nice!

Note that since this is technically going to be a break I'll need to put it in a minor version, so I may hold off on merging it for a few days until I have something else breaking.

extension Optional where Wrapped == Bool {

var apollo_boolValue: Bool {
var valueOrFalseIfNone: Bool {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd still like to keep this as boolValue - ultimately it behaves similarly to [NSNumber boolValue] in that if you call it on nil it returns false.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK. I changed it to boolValue with a comment on it.

@yuzushioh yuzushioh marked this pull request as ready for review May 4, 2020 03:20
Copy link
Copy Markdown
Contributor

@designatednerd designatednerd 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 going to hold off on merging this for a few days to make sure I don't need to do more patches for 0.27.x, but I'll put it out with our next minor!

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