chore(sync): carry beta back into development - #1716
Merged
rubenvdlinde merged 22 commits intoAug 30, 2026
Conversation
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).
…2 June 2026) + conduction.nl app link
…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
Contributor
Quality Report — ConductionNL/integriq @
|
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
betaheld 21 commit(s)developmentdid 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 nextdevelopment→betapromotion conflicts on it.0 file(s) change. A 0-file result is the normal and correct outcome once the content has already reached
developmentby 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.ymlalready applies to its ownsync/*-to-developmentpull requests.