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

feat(shell-api): add options in stream processor start, stop, and drop MONGOSH-1920 #2274

Conversation

mongodb-matthew-normyle
Copy link
Contributor

@mongodb-matthew-normyle mongodb-matthew-normyle commented Nov 22, 2024

  • Add an options parameter to the stream processor start, stop, and drop methods. We already do this for sample and stats methods.
  • This allows Atlas Stream Processing to support features like STREAMS-872.

Copy link
Contributor

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

LGTM – we probably should have done this from the beginning, it matches what similar helpers do in the mongosh API. The fact that, in some versions of mongosh, options will silently be ignored and, in newer versions, will be applied is probably going to trip up a couple users but I also don't really know a better way forward than to just add these and accept that.

@addaleax addaleax merged commit 3d751a2 into mongodb-js:main Nov 22, 2024
137 of 142 checks passed
@mongodb-matthew-normyle
Copy link
Contributor Author

some versions of mongosh, options will silently be ignored and, in newer versions, will be applied is probably going to trip up a couple users but I also don't really

Noted. We will clarify in streams documentation that various new features (i.e. support for .start(resumeFromCheckpoint=false)) require the latest version of mongosh. This should be fine given our customer base is small-ish (but growing 😄 )

nirinchev added a commit that referenced this pull request Dec 2, 2024
* main: (34 commits)
  chore: update auto-generated files [skip actions]
  chore: update auto-generated files [skip actions]
  chore(ci): use github app tokens instead of bot user (#2282)
  chore: update auto-generated files [skip actions]
  chore(ci): cleanup auto generated file workflow MONGOSH-1927 (#2281)
  chore: update auto-generated files
  chore(ci): use a github app for the generated files credentials MONGOSH-1927 (#2280)
  chore(deps): bump driver, bson, oidc-plugin to latest MONGOSH-1916 (#2279)
  chore(ci): login to docker (#2277)
  chore(ci): don't download chrome for cron tasks (#2278)
  chore: update node.js (#2270)
  chore: push auto-generated files directly instead of using PRs (#2275)
  fix(ci): allocate more memory to fix test_vscode MONGOSH-1892 (#2239)
  chore: update auto-generated files (#2276)
  feat(shell-api): add options in stream processor start, stop, and drop MONGOSH-1920 (#2274)
  chore: update auto-generated files (#2273)
  chore: update auto-generated files (#2272)
  fix: include nonce in oidc request by default MONGOSH-1905 MONGOSH-1917 (#2269)
  chore(ci): filter for explictily set variants in unit tests (#2271)
  chore: update auto-generated files (#2268)
  ...
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 participants