Regions: a scheduled publish of a region fails when its live code changed after scheduling

Open
#735 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
laravel, php, postgresql
Domain
backend

Research direction

Start with SchedulePublication and PublishRevision, where the code-change comparison against the live revision happens, then trace how a thrown exception in the scheduled job is retried or reported. Add a test that schedules a publish, changes live code, runs the job, and asserts the failure is surfaced to the user. Done when the failure produces a visible notice and the test passes.

Written by the indexing model from the issue text.

Description

area/site type/bug when/later

SchedulePublication compares code changes with the live revision when the publish is scheduled. If the live code changes before the time comes, PublishRevision sees a code change when the job runs, which needs the site-code permission and a password the job can't give, and it throws. It fails closed; check how the scheduler reports it (retries, notices) and say so to the person, with a test.

Dominant language
PHP
Stars
1
Forks
1
Avg merge
1h 40m
Merged PRs (30d)
143

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temecms/teme

All issues in temecms/teme

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.