Skip to content

chore(release): v0.17.2#207

Merged
jakub-przepiora merged 3 commits into
mainfrom
release/v0.17.2
Jul 24, 2026
Merged

chore(release): v0.17.2#207
jakub-przepiora merged 3 commits into
mainfrom
release/v0.17.2

Conversation

@jakub-przepiora

@jakub-przepiora jakub-przepiora commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

v0.17.2

Bundles the pending fixes into a release off main. Desktop version bumped 0.17.1 → 0.17.2; the build injects the version from the v0.17.2 tag.

Fixed

Changed

After merge

  1. Merge this PR to main (admin — branch protection).
  2. Tag v0.17.2 on the merge commit and push → triggers the release build (web ZIP + desktop win/mac/linux + apk).

Full suite green (1925). Closes #203.

🤖 Generated with claude-flow

Summary by CodeRabbit

  • Bug Fixes
    • Fixed empty admin live-sync lists when data exists, including work orders, lines, and product types.
    • Improved snapshot authentication reliability in deployments using reverse proxies or differing application URLs.
    • Preserved the existing snapshot URL and compatibility for mobile and token-based clients.
  • Improvements
    • Added a browser console warning when live-sync snapshot loading fails.
  • Release
    • Updated the desktop application version to 0.17.2.

Merges #203 (fix: /api/collections served via web session so admin lists load
on any host) and consolidates the CHANGELOG under 0.17.2. #206 (dense planner
sample data) is already on main. Desktop version bumped 0.17.1 -> 0.17.2.
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@jakub-przepiora, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 17 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8bd76aef-af96-4360-a1d3-6a4e5d0c9f77

📥 Commits

Reviewing files that changed from the base of the PR and between 0f80a55 and 290ba32.

⛔ Files ignored due to path filters (1)
  • mobile/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • CHANGELOG.md
  • desktop/scripts/bundle-resources.sh
📝 Walkthrough

Walkthrough

The collection snapshot endpoint now authenticates through the web session cookie, adds feature coverage for session and error responses, logs client-side snapshot failures, and updates release metadata to version 0.17.2.

Changes

Collection snapshot authentication

Layer / File(s) Summary
Session-authenticated snapshot route
backend/routes/api.php, backend/routes/web.php, backend/tests/Feature/Sync/CollectionSnapshotSessionAuthTest.php
The /api/collections/{name} endpoint moved to web routing and is covered for authenticated sessions, guests, and unknown collections.
Snapshot fetch diagnostics
backend/resources/js/lib/realtimeCollection.js
Snapshot load failures now emit a console.warn while retaining existing data.
Release metadata
CHANGELOG.md, desktop/package.json, desktop/src-tauri/Cargo.toml, desktop/src-tauri/tauri.conf.json
Release notes and desktop version fields were updated to 0.17.2.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • Mes-Open/OpenMes#203: Changes the same collection snapshot route, client error handling, and authentication tests.

Suggested reviewers: svannte, jankolo04

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately identifies this as the v0.17.2 release, which matches the version bumps and release fixes in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/v0.17.2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@backend/tests/Feature/Sync/CollectionSnapshotSessionAuthTest.php`:
- Around line 21-30: Extend test_authenticated_session_gets_the_snapshot with
two tenant fixtures and tenant-specific collection data, associating the
authenticated user with one tenant. Assert the response rows and channel contain
only that tenant’s data, matching CollectionController::index behavior, rather
than checking only the JSON structure.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: da300c10-b1aa-4838-a3a5-aa1fed173cc0

📥 Commits

Reviewing files that changed from the base of the PR and between b3bdd5d and 0f80a55.

⛔ Files ignored due to path filters (1)
  • desktop/src-tauri/Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (8)
  • CHANGELOG.md
  • backend/resources/js/lib/realtimeCollection.js
  • backend/routes/api.php
  • backend/routes/web.php
  • backend/tests/Feature/Sync/CollectionSnapshotSessionAuthTest.php
  • desktop/package.json
  • desktop/src-tauri/Cargo.toml
  • desktop/src-tauri/tauri.conf.json

Comment on lines +21 to +30
public function test_authenticated_session_gets_the_snapshot(): void
{
$user = User::factory()->create();

// No Origin / Referer / stateful-domain set — pure session auth, as it
// would be for any host the deployment is actually served on.
$this->actingAs($user)
->getJson('/api/collections/issue_types')
->assertOk()
->assertJsonStructure(['rows', 'channel', 'at']);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

Assert tenant isolation, not only response shape.

This test would pass even if the snapshot returned another tenant’s rows or channel. Add a tenant-scoped fixture with two tenants and assert that the authenticated user receives only its tenant’s data, matching CollectionController::index.

As per coding guidelines, new endpoint tests must cover domain edge cases.

🧰 Tools
🪛 PHPStan (2.2.5)

[error] 23-23: Call to an undefined static method App\Models\User::factory().

(staticMethod.notFound)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@backend/tests/Feature/Sync/CollectionSnapshotSessionAuthTest.php` around
lines 21 - 30, Extend test_authenticated_session_gets_the_snapshot with two
tenant fixtures and tenant-specific collection data, associating the
authenticated user with one tenant. Assert the response rows and channel contain
only that tenant’s data, matching CollectionController::index behavior, rather
than checking only the JSON structure.

Source: Coding guidelines

- bundle-resources.sh: replace rsync (absent on Windows git-bash runner) with a
  portable cp-based copy + storage prune.
- mobile/package-lock.json: regenerate in sync with package.json so npm ci passes
  (was missing @emnapi/*). Both verified locally (npm ci green, bundle produced).
@jakub-przepiora
jakub-przepiora merged commit 630ce2d into main Jul 24, 2026
2 checks passed
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.

1 participant