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

build: upgrade pymongo to 4.7.2 #213

Closed
wants to merge 6 commits into from
Closed

build: upgrade pymongo to 4.7.2 #213

wants to merge 6 commits into from

Conversation

athith-g
Copy link

Description

Fixes #212.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • N/A I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation (or documentation does not need to be updated)
  • My changes generate no new warnings
  • N/A I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have not reduced the existing code coverage

Copy link
Author

Choose a reason for hiding this comment

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

I assumed the db port in petstore-access-control differs from the db port for petstore in order to be able to run both simultaneously. If this is the case, should I also change the port for the app container?

Copy link
Member

Choose a reason for hiding this comment

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

That's not a bad idea. However, they may always be port conflicts for any given user, regardless of what ports we use. In any case, it's a different issue and nobody requested it, so let's leave the ports as they were here (i.e., please roll back 12345 to 27017).

Copy link
Member

Choose a reason for hiding this comment

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

On another note: I think it would make sense to also upgrade MongoDB to the latest version in the docker-compose.yml files for the two example apps in this PR.

Copy link
Author

Choose a reason for hiding this comment

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

Ah that makes sense I'll get to changing those thanks. The reason I changed the port was because the db port is 12345 in the mock data that is used by the access control tests. Should I change the port in the mock data to 27017 instead?

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I didn't see your reply. I think what's in the mock data shouldn't matter, it's just a different config, any port should work. But let's keep the more standard 27017 port for the petstore apps. More generally, let's only change what's necessary in any given PR :)

Speaking of which, I didn't quite understand which unit tests failed because of the port in #214. I will comment there.

@uniqueg uniqueg changed the title Upgraded pymongo version to 4.7.2 build: update pymongo version to 4.7.2 May 14, 2024
@uniqueg uniqueg changed the title build: update pymongo version to 4.7.2 build: update pymongo to 4.7.2 May 14, 2024
@uniqueg uniqueg changed the title build: update pymongo to 4.7.2 build: upgrade pymongo to 4.7.2 May 14, 2024
Copy link
Member

@uniqueg uniqueg left a comment

Choose a reason for hiding this comment

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

Please have a look at the open thread. Also, I'm concerned about the failing tests. They are not your fault, but I can't publish a release before these are fixed. So that will delay things. Try not to get blocked by this by using your local FOCA branch that has this issue fixed.

@uniqueg
Copy link
Member

uniqueg commented May 20, 2024

Closing in favor of #220 which builds on this PR

@uniqueg uniqueg closed this May 20, 2024
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.

build: upgrade pymongo to 4.7.2
2 participants