-
-
Notifications
You must be signed in to change notification settings - Fork 975
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
Upgrade package mongoose from 5.13.22 to 8.0.4 #1695
Comments
@xoldyckk Your comments on this would be valuable. |
I would like to work on it. |
Hi @palisadoes, I do have experience in migration from 5 to 7 in my current projects. Can you please assign this to me? I would like to work on it knowing this is migration to 8. Thanks. |
@palisadoes @xoldyckk On upgrading the mongoose package to And this is just not with single Resolver, there are tons of other. So how could I fix it.
If you have any better approach then please suggest. |
@Veer0x1 Thanks for pointing this out. I feel that the best would be the culmination of two approaches:
I would like to wait for the opinions of @xoldyckk before proceeding. |
Of the three options, which one do you think is the best solution in the long term for stability and maintainability, and why? |
Notice the usage of bang operator type Mutation {
createEvent(input: CreateEventInput!): CreateEventPayload!
} If the field type is non nullable in graphql schema and database returns a null, you throw a If the field type is non nullable in graphql schema and an unexpected error happens in the resolver, you either catch the error within the resolver and throw a type Mutation {
createEvent(input: CreateEventInput!): CreateEventPayload
} If the field type is nullable in graphql schema and database returns a null, you return the null. If the field type is nullable in graphql schema and an unexpected error happens in the resolver, you catch the error within the resolver and throw a |
Thanks @xoldyckk for your advice, I'll go as you suggested. |
@palisadoes this changes would be a lot of changes for a single PR, if there isn't any issue in reviewing then I can do all this changes in a single PR. |
|
@xoldyckk Can you go into more details regarding the extensions for the error messages? I'd opt for the same route that you're suggesting but I'm a bit worried its effect on the tests as you've previously suggested. |
|
@xoldyckk wouldn't it be better to handle error using our custom |
the custom error class is built upon the standard javascript the localization aspect of error messages (different languages) is useless unless those error messages are displayed to the end user, developers of the UI applications write code in english language as is the standard across the world, same goes for the consuming the developer centric error messages |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
@Veer0x1 Are you still working on this? |
Yes I'm working on it, fixing some failing tests. |
When do you think you'll be able to raise a PR? The end of support date is in a few weeks |
I'll try my best to raise PR by this week, most part of upgradation is done, just fixing some tests. |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
@meetulr @palisadoes This problem happens where |
@palisadoes @meetulr @xoldyckk should I remove |
@gautam-divyanshu
This would be the shape of resolved
The correct way to resolve foreign key relations between different collections in graphql is explained here:- #1585 (comment) |
@xoldyckk okay, Thanks for help. |
@gautam-divyanshu I think instead of organization there should be organizationId because it is used as foreign key there . |
I think because i was thinking it would work, maybe i did not check this, Any update on this now @gautam-divyanshu I am happy to help! |
Yes, I've already changed that. |
I have changed creator to creatorId and organisation to organisationId, and test cases are passing, Thanks btw. |
@palisadoes @meetulr @xoldyckk I just fetched updates from remote repo to my local repo, and got this error while running tests |
We are frequently occupied with managing other PRs and issues so you'll need to take the initiative to solve some of these roadblocks. It will be very difficult to keep up with the changes unless:
I'd prefer not to freeze the code in The other concern is that if we have a freeze and there is a snag, all other work will be indefinitely on hold. We merge into I think this approach will be more rewarding by increasing the likelihood of success. |
@palisadoes @Cioppolo14 |
The new functionality with a user's Read the details of this issue to understand what you expect |
@palisadoes Do I need to make any changes to that branch?, or can I simply merge my branch into this branch and resolve the merge conflicts? |
@palisadoes And this branch is not showing up in my forked repository; do I need to refork it? |
Refetch from the upstream |
@palisadoes @Cioppolo14 please review this pr |
@palisadoes Is this correct way? |
@palisadoes @Cioppolo14 I have created one pr (i.e. #1977 ) for minor change to work around github actions and other pr (i.e. #1978 ) which is related to actual issue Please review these pr |
Rationale
This is a major revision upgrade and many files may need to be updated to the new syntax, functions, methods and classes
Task
Upgrade mongoose from 5.13.22 to 8.0.4.
Background Failing PRs
Release Note Details
Release notes
Sourced from mongoose's releases.
... (truncated)
Changelog
Sourced from mongoose's changelog.
... (truncated)
Commits
ec4191e
chore: release 8.0.43bc4482
Merge branch '7.x'2c2377d
Merge pull request #14242 from Automattic/vkarpov15/gh-14231ac9af5b
docs: add unnecessary lookahead fix to changelog6ffb123
chore: release 7.6.89b759bc
fix(populate): handle deselecting_id
with array of fields inpopulate()
889a41d
Merge pull request #14240 from Automattic/vkarpov15/gh-142363d4274e
Merge pull request #14239 from Automattic/vkarpov15/gh-1423462223bf
Merge pull request #14235 from amitbeck/types/schema_omit3b2a138
fix(query): avoid double-calling querytransform()
withfindOne()
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)The text was updated successfully, but these errors were encountered: