Skip to content

chore(sync): carry beta back into development - #1716

Merged
rubenvdlinde merged 22 commits into
developmentfrom
sync/beta-to-development-20260830173937
Aug 30, 2026
Merged

chore(sync): carry beta back into development#1716
rubenvdlinde merged 22 commits into
developmentfrom
sync/beta-to-development-20260830173937

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

beta held 21 commit(s) development did not — release version bumps committed onto the branch the release ran from, and anything else that arrived out of band. Left unreconciled, both branches change the version file independently and the next developmentbeta promotion conflicts on it.

0 file(s) change. A 0-file result is the normal and correct outcome once the content has already reached development by other means — recording the ancestry is the payload. Without it the merge base never moves and the next promotion conflicts exactly as before.

Version files were resolved to development's side, whose line is ahead of the released one, so this never moves a version backwards. Any conflict outside them aborts the merge for a human instead.

Opened by fleet-back-merge.yml, using the algorithm release.yml already applies to its own sync/*-to-development pull requests.

rubenvdlinde and others added 22 commits May 29, 2026 07:42
OpenConnector contained several MySQL-specific SQL constructs that fail on
PostgreSQL (MySQL silently coerces; PostgreSQL errors). These broke job
creation, synchronization, log retention and the statistics dashboard on
PostgreSQL deployments.

- find(): drop `eq('id', $stringId)` from the non-numeric branch in Source,
  Job, Mapping, Endpoint and Rule mappers. Comparing the bigint `id` column to
  a uuid/slug threw SQLSTATE[22P02] "invalid input syntax for type bigint".
- findByConfiguration() (6 mappers): replace MySQL-only JSON_CONTAINS + backtick
  table names with a cross-DB QueryBuilder LIKE, matching findByArgumentIds.
- RuleMapper::getMaxOrder(): replace COALESCE(MAX(`order`)) raw SQL with
  func()->max('order'), which quotes the reserved word per platform.
- SourcesController: make the slow-requests JSON filter platform-aware
  (Postgres ::jsonb->>, SQLite json_extract, MySQL JSON_EXTRACT).
- SettingsService::rebase(): extract a platform-aware setExpiryDates() helper
  (Postgres/SQLite/MySQL date arithmetic; CAST(? AS bigint) so PDO's text-bound
  param multiplies an interval on PG) and a portable columnExists() replacing
  SHOW COLUMNS; emit empty-string/zero-date predicates only for MySQL.
- SettingsService::getStats(): drop backtick-quoted table names so COUNT(*)
  runs on PostgreSQL instead of silently returning 0.

Validated end-to-end against PostgreSQL: job creation, find-by-slug (404 not
500), rebase (success, no errors) and stats (real counts).
…settings' (#37) from hotfix/postgresql-compatibility into main

Reviewed-on: https://codeberg.org/Conduction/openconnector/pulls/37
Reviewed-by: WilcoLouwerse <wilcolouwerse@noreply.codeberg.org>
Inhoud exact Codeberg-main (tree ongewijzigd); banner-commit alleen als
ancestor zodat de push fast-forward is. Migratie 16-07.
`code-quality.yml` on `main` had no `push:` trigger, only `pull_request`. So a
push to the release branch ran no jobs at all.

Measured 2026-08-09: openconnector `main` has ZERO Code Quality runs on
record. Not failing — absent. A branch with no runs shows no red, which is
exactly why this went unseen while every other measurement in the CI
programme was made on `development`.

`development` has carried the correct trigger for some time:

    push:
      branches: [main, development, feature/**, bugfix/**, hotfix/**]

It never reached `main` because the corrected workflow travels the release
train (development -> beta -> main) and no release has carried it across.

Deliberately workflow-only. This does not fix whatever `main` may be failing —
it makes `main`'s state VISIBLE, which has to come first. Expect the first run
to be red; that red is information the branch has not produced in months.

See ConductionNL/.github#285.

Co-authored-by: Conduction Release Bot <release-bot@conduction.nl>
Deleting orphaned register/schema objects during sync cleanup was
silently broken in two ways after OpenRegister's move to per-schema
magic tables:

- updateTargetOpenRegister() called the removed
  ObjectService::delete() method, fatally crashing the delete path
  whenever it actually ran.
- findAllBySynchronizationAndSchema() joined against the retired,
  now-permanently-empty openregister_objects table, so it never found
  any contracts to clean up in the first place, regardless of what
  was orphaned.

Switch to the current ObjectService::deleteObject() API, join against
the schema's actual magic table (OCA\OpenRegister\Db\MagicMapper::
TABLE_PREFIX + registerId + schemaId), and stop crashing the whole
cleanup loop when a single delete is blocked by a referential
integrity constraint or the contract has already vanished.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
fix: repair deleteInvalidObjects for OpenRegister magic tables
* ci(release): drop inert beta-release.yaml (triggered on branch 'never')

* ci(release): drop inert stable-release.yaml (triggered on branch 'never')

* ci(release): drop inert unstable-release.yaml (triggered on branch 'never')

* ci(release): drop inert push-beta-to-beta-release.yaml (triggered on branch 'never')

* ci(release): drop inert push-development-to-development-release.yaml (triggered on branch 'never')
Dependabot reads its config from the DEFAULT branch (main here), whose
copy carried no target-branch - so every PR was opened against main
where branch-protection rejects it. This is development's file verbatim.
Release: merge development into beta
main held 16 commit(s) beta did not. Merged with -s ours: beta's
tree is kept BYTE FOR BYTE and only the ancestry is recorded, so the
beta -> main promotion stops conflicting on files where beta is simply
newer.

Not brought over -- beta is hundreds of commits ahead of main, so these
are the OLDER copies, and several are dead Forgejo/Codeberg CI that
development deliberately removed:

  .forgejo/workflows/documentation.yml .forgejo/workflows/release-beta.yml .forgejo/workflows/release-stable.yml .github/dependabot.yml .github/workflows/beta-release.yaml .github/workflows/code-quality.yml .github/workflows/push-beta-to-beta-release.yaml .github/workflows/push-development-to-development-release.yaml .github/workflows/stable-release.yaml .github/workflows/unstable-release.yaml appinfo/info.xml lib/Controller/SourcesController.php lib/Db/EndpointMapper.php lib/Db/JobMapper.php lib/Db/MappingMapper.php lib/Db/RuleMapper.php lib/Db/SourceMapper.php lib/Db/SynchronizationContractMapper.php lib/Db/SynchronizationMapper.php lib/Service/SettingsService.php lib/Service/SynchronizationService.php
Release: merge beta into main
…173930

chore(sync): carry main back into beta
@rubenvdlinde
rubenvdlinde merged commit 85d2a20 into development Aug 30, 2026
1 check passed
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/integriq @ 8b07e57

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
build
check-specs
test-l10n
format
check-schema-l10n
check-l10n-js
composer ✅ 146/146
npm ✅ 538/538
app:check-code ⏭️
info.xml
REUSE
PHPUnit
Newman
Playwright 🚨 NO VERDICT — enabled but never ran
Hydra gates

Quality workflow — 2026-08-30 18:47 UTC

Download the full PDF report from the workflow artifacts.

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.

4 participants