Skip to content

Remove stale Flourish/PHP references from docs and comments (#734)#1066

Open
dduugg wants to merge 1 commit into
shift-org:mainfrom
dduugg:issue-734-flourish-refs
Open

Remove stale Flourish/PHP references from docs and comments (#734)#1066
dduugg wants to merge 1 commit into
shift-org:mainfrom
dduugg:issue-734-flourish-refs

Conversation

@dduugg
Copy link
Copy Markdown
Contributor

@dduugg dduugg commented May 31, 2026

Closes #734.

The PHP backend — and the Flourish library it used — was removed in #694. As a result, various comments and docs still describe behavior in terms of Flourish, PHP source files, or PHP-only mechanics that no longer exist. This reworks those references to describe what the current Node code actually does.

Flourish references

  • app/endpoints/events.js — describe the event pooling / end-time handling directly, instead of contrasting it with the old PHP/ORM behavior.
  • app/models/calDaily.js & app/models/calEventValidator.js — state the current null / 24-hour-conversion behavior and its rationale (consistency with existing data), dropping the Flourish framing and the dead flourishlib.com doc links.
  • docs/TABLES.md — point the image config at app/config.js (config.image.*) and the manage_event endpoint, instead of config.php / manage_event.php / $IMAGEDIR.
  • docs/cache_busting.md — rewrite the upload flow to match the Node implementation (in-memory multer upload; uploader.write() writing the base-format id.ext; the sequence number living only in the db field and URL). Removes upload_attached_file(), updateImageUrl(), and the GET-time renaming that no longer exist. Kept the still-accurate cache-busting concept and nginx URL handling.
  • site/themes/s2b_hugo_theme/assets/js/cal/addevent.js — replace the dangling "so the error message sent by flourish" comment with a clearer note that nginx (not the backend) sends the 413.

Related dead PHP source-file references (same spirit)

  • app/endpoints/retrieve_event.js & app/endpoints/delete_event.jssee errors.phpsee util/errors.js.
  • app/models/calDaily.js@see: DateStatus.php, manage_event.phpdateStatus.js, manage_event.js.
  • docs/TABLES.md — "manage_event.php slices the first 24 characters…" → "the manage_event endpoint slices…".

Deliberately left as-is

  • /api/*.php URL paths — the endpoints are still served at these URLs (appEndpoints.js hosts each at /api/<name>.php), so request examples, tests, nginx routes, and the frontend API config that reference them remain correct.
  • docs/AllEvents.md — a historical design memo describing the PHP-era implementation; its .php references are accurate to the era it narrates, so rewriting filenames there would misrepresent the history rather than fix anything.

These are comment/documentation edits only; no behavior changes.

@dduugg dduugg force-pushed the issue-734-flourish-refs branch from e583f60 to 7bf9561 Compare May 31, 2026 04:16
…g#734)

The PHP backend (and the Flourish library it used) was removed in shift-org#694,
so comments and docs that describe behavior in terms of Flourish, PHP
source files, or PHP-only upload mechanics are now inaccurate. Rather
than just renaming "flourish" to "legacy PHP backend", reword them to
describe what the current Node code actually does:

- app/endpoints/events.js: describe the event pooling / end-time handling
  directly instead of contrasting with the old PHP/ORM behavior.
- app/models/calDaily.js, calEventValidator.js: state the current
  null/24-hour conversion behavior and its rationale (data consistency),
  dropping Flourish framing and dead flourishlib.com links.
- docs/TABLES.md: point image config at app/config.js (config.image.*)
  and the manage_event endpoint instead of config.php/manage_event.php.
- docs/cache_busting.md: rewrite the upload flow to match the Node
  implementation (multer in-memory upload, uploader.write writing the
  base-format name), removing references to upload_attached_file(),
  updateImageUrl(), and GET-time renaming that no longer exist.
- site theme addevent.js: clarify the 413 comment (nginx sends it).

Also fix dead PHP source-file references in the same spirit:
- retrieve_event.js / delete_event.js: errors.php -> util/errors.js
- calDaily.js @see: DateStatus.php, manage_event.php -> .js equivalents
- docs/TABLES.md: 'manage_event.php slices...' -> 'the manage_event endpoint'

Legitimate /api/*.php URL paths (still how endpoints are served) are
left as-is, as is docs/AllEvents.md, which is a historical design memo
describing the PHP-era implementation.
@dduugg dduugg force-pushed the issue-734-flourish-refs branch from 7bf9561 to ff8c81f Compare May 31, 2026 04:20
@dduugg dduugg changed the title Update Flourish references in docs and comments (#734) Remove stale Flourish/PHP references from docs and comments (#734) May 31, 2026
@dduugg dduugg marked this pull request as ready for review May 31, 2026 04:25
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.

Update references to Flourish in documentation and comments

1 participant