Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

New skip method #253

Merged
merged 3 commits into from
Oct 7, 2016
Merged

New skip method #253

merged 3 commits into from
Oct 7, 2016

Conversation

jbaxleyiii
Copy link
Contributor

@jbaxleyiii jbaxleyiii commented Oct 7, 2016

Fixes #245

Docs PR https://github.com/apollostack/react-docs/pull/70

TODO:

  • If this PR is a new feature, reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass
  • Update CHANGELOG.md with your change
  • If this was a change that affects the external API, update the docs and post a link to the PR in the discussion

@jbaxleyiii jbaxleyiii merged commit 6554026 into master Oct 7, 2016
@jbaxleyiii jbaxleyiii deleted the 245 branch October 7, 2016 20:10
@glasser
Copy link
Member

glasser commented Oct 7, 2016

Awesome!

@rricard
Copy link
Contributor

rricard commented Oct 12, 2016

The old API doesn't seem to work after this PR (in our case). Moreover, adding a deprecation warning would help us figure out we need to migrate. Maybe 0.5.8 should have been 0.6.0, too much feature changes at once: this broke our app.

@jbaxleyiii
Copy link
Contributor Author

@rricard what is broken? The old API is still covered in testing https://github.com/apollostack/react-apollo/blob/master/test/react-web/client/graphql/queries-1.test.tsx#L321-L345

We aren't even planning on removing it as it allows for a different kind of skipping

@rricard
Copy link
Contributor

rricard commented Oct 12, 2016

I saw the test, but it seem to change the skipping behavior all at once: for instance the old test doesn't cover the case where I have two queries at once mutally skipping themselves. What I see are cancellations of the non-skipped query because the other query has been skipped.

@rricard
Copy link
Contributor

rricard commented Oct 12, 2016

I'll try to write a test for that. All I'm asking is maybe, while adding new APIs or refactors, don't just increment the patch number. Increment the minor version number instead. That way npm won't get the patch version right away, potentially breaking the app

@glasser
Copy link
Member

glasser commented Oct 12, 2016

Have you tried with 0.5.9? 0.5.9 fixes a bunch of skip related bugs, some
of which may have been new with 0.5.8.

On Oct 12, 2016 5:08 AM, "Robin Ricard" [email protected] wrote:

I'll try to write a test for that. All I'm asking is maybe, while adding
new APIs or refactors, don't just increment the patch number. Increment the
minor version number instead. That way npm won't get the patch version
right away, potentially breaking the app


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#253 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABBVK8NHNZBUdeEpuCj3sHfy8b5uQi0ks5qzM2ngaJpZM4KRZWk
.

@rricard
Copy link
Contributor

rricard commented Oct 12, 2016

We tried with 0.5.9 didn't work either. Bottom line is, with this kind of change: the safe path is to go with a new minor version...

@helfer
Copy link
Contributor

helfer commented Oct 12, 2016

@rricard yeah, I hear you. Maybe this is something we should do for Apollo Client as well.

@glasser
Copy link
Member

glasser commented Oct 13, 2016

Admittedly, the "patch" and "minor" fields mean something a little different with 0.* semvers, but this makes a lot of sense.

@rricard That said, we didn't intend to break anything about the original skip feature other than fixing some blatant bugs. Can you file an issue for what broke in your app?

@rricard
Copy link
Contributor

rricard commented Oct 13, 2016

@helfer already talked with @stubailo about that, I think client is figured out, current refactor will go to an another minor number and/or a prerelease cycle (we have to figure out how to do that with npm though 😉!)

@glasser I know, I'm more trying to think about a threshold of refactor where we should start to think that something may break ... even if current tests won't catch it. What I'm saying is, that would just avoid the case where someone is tracking ^0.X.0 and a patch version would make fail a CI or a deployment, I think that increasing the minor where we're not quite completely sure would ensure we don't kill those. However, from now on and before the 1.0, I'll track exact patch versions.

@rricard
Copy link
Contributor

rricard commented Oct 13, 2016

Now, let's write some failing tests! 😉 ...and a fix! 🎉

@rricard
Copy link
Contributor

rricard commented Oct 13, 2016

See #271 for reproduction and bug tracking of the issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants