Skip to content
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

Fix mongo #1286

Merged
merged 10 commits into from
Jun 21, 2021
Merged

Fix mongo #1286

merged 10 commits into from
Jun 21, 2021

Conversation

aschmois
Copy link
Collaborator

@aschmois aschmois commented Jun 17, 2021

Before submitting your PR, check that you've:

  • Ran stylish-haskell on any changed files.
  • Adhered to the code style (see the .editorconfig file for details)

After submitting your PR:

  • Update the Changelog.md file with a link to your PR
  • Bumped the version number if there isn't an (unreleased) on the Changelog
  • Check that CI passes (or if it fails, for reasons unrelated to your change, like CI timeouts)

Closes #1284

Since embedded fields have been removed there are some sacrifices we had to make but the majority of the features should still be working. Embedded fields will be set as null and they will be unordered when retrieved.

@@ -430,15 +445,18 @@ toInsertDoc record =
DB.:=
embeddedVal pv
)
$ filter (\(_, pv) -> isNull pv)
$ filter (\(_, pv) -> not $ isNull pv)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The major fix was this! At least for our needs this was the only thing that really broke anything.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Wow. I'm really surprised that worked?

Copy link
Collaborator

@parsonsmatt parsonsmatt left a comment

Choose a reason for hiding this comment

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

Well done! I'm surprised and impressed 😂

Can you update the persistent-mongoDB.cabal file to be the new version? I can merge and release it then.

Would you be willing to accept maintainership responsibilities for persistent-mongoDB? I'll add you as a user on Hackage and give you access to the repository.

Thanks!

@@ -430,15 +445,18 @@ toInsertDoc record =
DB.:=
embeddedVal pv
)
$ filter (\(_, pv) -> isNull pv)
$ filter (\(_, pv) -> not $ isNull pv)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wow. I'm really surprised that worked?

@aschmois
Copy link
Collaborator Author

Would you be willing to accept maintainership responsibilities for persistent-mongoDB? I'll add you as a user on Hackage and give you access to the repository.

Sounds good. I'll have to maintain it for the time being while our team continues to use mongodb!

@aschmois aschmois requested a review from parsonsmatt June 21, 2021 17:01
Copy link
Collaborator

@parsonsmatt parsonsmatt left a comment

Choose a reason for hiding this comment

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

Fantastic! Thanks!

@parsonsmatt
Copy link
Collaborator

What's a Hackage username I can add?

@parsonsmatt
Copy link
Collaborator

@snoyberg Can we add @aschmois as a maintainer on the repo?

@aschmois
Copy link
Collaborator Author

aschmois commented Jun 21, 2021

I have an upload account with aschmois

@snoyberg
Copy link
Member

No problem from my side. I just added you on Hackage for persistent-mongoDB and as a repo writer. Thank you!

@parsonsmatt
Copy link
Collaborator

@aschmois Want to do the honors (sqash+merge+release)?

@aschmois aschmois merged commit 5dbd756 into yesodweb:master Jun 21, 2021
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.

2.13 support for mongodb
3 participants