graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

"LegacySupport" flag was removed between v12.7.0-preview.41 and v12.7.0

Open sgabler-solytic opened this issue 3 years ago • 8 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

A flag was added in https://github.com/ChilliCream/hotchocolate/pull/4709 for the related issue: https://github.com/ChilliCream/hotchocolate/issues/4706

But after upgrading to v12.7.0, the flag is no longer there:

image

Steps to reproduce

  1. Try to use the LegacySupport flag in the PagingOptions
                .SetPagingOptions(
                    new PagingOptions
                    {
                        LegacySupport = true,
                        IncludeTotalCount = true,
                        InferConnectionNameFromField = false,
                    }
                )

Relevant log output

No response

Additional Context?

No response

Product

Hot Chocolate

Version

12.7.0

sgabler-solytic avatar Apr 19 '22 14:04 sgabler-solytic

@sgabler-solytic 12.7.0-preview.41 is now the current working branch of v13. We backported a lot of changes for another (two?) releases of v12. What exactly are you using of v12.7 preview? can you just "go back" to 12.7?

PascalSenn avatar Apr 19 '22 18:04 PascalSenn

I assumed that v12.7.0-preview.41 is a lower version than v12.7.0, because it's a preview of the upcoming stable version v12.7.0. Maybe that's a wrong assumption?

I originally raised this issue in the slack chat: https://hotchocolategraphql.slack.com/archives/CD9TNKT8T/p1643307651419039, but then later created #4706.

After reading the slack discussion again, I can now see that @michaelstaib originally added the legacy support in v12.7.0-preview.2.

image

I then upgraded to preview.41 some time later and the legacy support still worked. Only after upgrading to v12.7.0 (without any preview suffix) it stopped working.

We (or anyone who wants to upgrade from v10) need this flag, otherwise we can't upgrade from HC10 to HC12, as it's a breaking change between the versions.

Or am I missing something? 🤔

sgabler-solytic avatar Apr 19 '22 21:04 sgabler-solytic

12.7 preview became 13 and we reset the version 12.7

michaelstaib avatar Apr 22 '22 20:04 michaelstaib

The feature is not gone ... we probably can cherry-pick it to 12.9

michaelstaib avatar Apr 22 '22 20:04 michaelstaib

👍 That would be highly appreciated. Then I'll be able to finalize the upgrade from HC10 to HC12

sgabler-solytic avatar Apr 24 '22 10:04 sgabler-solytic

@michaelstaib @PascalSenn what was the final outcome here? I remember reading something somewhere, but can't find it anymore

sgabler-solytic avatar Jun 23 '22 10:06 sgabler-solytic

I will put it in 12.12

michaelstaib avatar Jun 23 '22 10:06 michaelstaib

We have moved this one to 12.13

michaelstaib avatar Jul 22 '22 08:07 michaelstaib

@michaelstaib I assume the preferred way of dealing with this issue it now to use a rewriter?

From the docs:

To avoid breaking schemas on a stitched schema, you can add a rewriter that rewrites all first: Int and last: Int on a connection to first: PaginationAmount and last: PaginationAmount. You also have to make sure that you register a new IntType on the root schema and rewrite all downstream schemas.

If yes, then I think we can close this issue

sgabler-solytic avatar Nov 06 '22 15:11 sgabler-solytic

The issue is fixed on 13 with the legacy support available.

michaelstaib avatar Nov 06 '22 15:11 michaelstaib

Just to give some background here. The change was not the simplest and we could not make it work in 12 without introducing another breaking change. I am closing this issue since it is solved with 13.

michaelstaib avatar Nov 07 '22 07:11 michaelstaib