Skip to content

Create group2sessions.sessionIDs if it doesn't exist yet.#939

Merged
JohnMcLear merged 2 commits into
ether:developfrom
marcelklehr:fix/group2sessions-bug
Aug 12, 2012
Merged

Create group2sessions.sessionIDs if it doesn't exist yet.#939
JohnMcLear merged 2 commits into
ether:developfrom
marcelklehr:fix/group2sessions-bug

Conversation

@marcelklehr

Copy link
Copy Markdown
Contributor

This attempts to fix a bug, that caused a server shutdown in #787.

@fourplusone

Copy link
Copy Markdown
Contributor

I wonder under which conditions author2sessions != null but author2sessions.sessionIDs == null (same for group2sessions)

@marcelklehr

Copy link
Copy Markdown
Contributor Author

So do I :)

But obviously this happens.

JohnMcLear added a commit that referenced this pull request Aug 12, 2012
Create group2sessions.sessionIDs if it doesn't exist yet.
@JohnMcLear
JohnMcLear merged commit 71d6d52 into ether:develop Aug 12, 2012
JohnMcLear added a commit that referenced this pull request Apr 20, 2026
* docs: design spec for issue #7570 (ueberdb2 driver bundling)

Spec for the upstream ueberDB fix (move 10 drivers back from optional
peer deps to dependencies) plus downstream etherpad-lite safety net
(explicit driver list + build-test-db-drivers CI job covering all 10
via presence check and MySQL+Postgres smoke tests).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs: implementation plan for issue #7570 ueberdb2 driver bundling

Covers upstream ueberDB PR (move drivers from optional peer deps back
to dependencies, publish 5.0.46) and downstream etherpad-lite PR
(bump ueberdb2, defensive driver list, build-test-db-drivers CI job
with presence + MySQL + Postgres stages gating publish).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(#7570): bundle DB drivers, add regression CI

- Bump ueberdb2 to ^5.0.47 (upstream ueberDB PR #939 re-bundles drivers
  as real dependencies instead of optional peer deps, fixing the class
  of Docker-prod "Cannot find module" failures).
- Declare all 10 ueberdb2 DB drivers as direct src dependencies as a
  defensive safety net against a future upstream drift.
- Add build-test-db-drivers CI job that blocks the publish job:
    * all-10-drivers presence check in the built prod image
    * end-to-end MySQL smoke (reproduces the #7570 repro)
    * end-to-end Postgres smoke
  Any stage failure blocks Docker Hub / GHCR publish.

Supersedes #7571.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(ci): run driver presence test from src/ so node_modules resolves

The presence test ran node from the default cwd (/opt/etherpad-lite),
but the drivers are installed under /opt/etherpad-lite/src/node_modules
by the monorepo workspace. Adding `-w /opt/etherpad-lite/src` makes
Node resolve modules from src/node_modules where pnpm places them.

Matches how the production container itself runs: `pnpm run prod` is
invoked from src/ (cross-env + node --require tsx/cjs node/server.ts).

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

3 participants