Repository navigation
fix(psa): keep Schedule Type off the project task's page, drawer and form (#2769) - #2772
Merged
Merged
Conversation
…form (#2769) The formula the Gantt reads through typeField showed on the task's record page and in the record drawer as a raw machine value (task / milestone), repeating the Milestone checkbox. Mark it hidden, as the other helper fields are. The Gantt's data request still returns it, so a milestone is still drawn as a diamond.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Collaborator
Author
|
Seat record · 独立评审 · head 独立评审(只读子代理,未参与改动)结论:通过(有 nit)。Metadata-impact 同意
Findings
|
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.
Description
Under zh-CN (and every other locale) the Schedule section of a project task showed Schedule Type (排期类型) with the raw value
taskormilestone: on the task's record page and in the record drawer opened from a row of the Project Plan Gantt. The field is a formula the Gantt reads throughtypeFieldto draw a milestone as a diamond; it repeats the Milestone checkbox as a machine value and nobody reads it on a page.Fixes #2769
Metadata-impact: reviewer
Changes Made
src/psa/objects/project_task.object.ts:schedule_typegetshidden: true, the same waycrm_account.name_normalizedandcrm_lead.company_normalizedare kept off pages and forms. The comment beside it says why.test/psa-project-tasks.test.ts: one case beside the two that already pin the value (task/milestone): the field the Gantt reads is hidden, the Milestone checkbox is not..changeset/2769-hide-schedule-type.md(patch).No translation, view, page or manual changes. The four locale labels for the field stay (it is still a field with a label); no manual names the field.
How the Gantt diamond was verified
On a dev server of this branch (
objectstack dev -p 4069, pinned@objectstack/*18.6.0, seeded demo data, zh-CN, signed in as the dev admin):GET /api/v1/data/crm_project_task?populate=…&top=10001&sort=planned_start, noselect) returnsschedule_typeon all 23 task rows.typeField, not from the dates. The console's Gantt also draws any task whose start and end are the same day as a diamond, and every seeded milestone is single-day, so step 2 alone proves nothing. I ticked Milestone on a multi-day task ("Initech phase 1: migration assessment", 2026-07-27 → 2026-08-16): itsschedule_typebecamemilestoneand the Gantt drew it as a diamond. Unticking it turned it back into a bar.On the same server, 排期类型 is absent from:
Testing
pnpm verify(validate, typecheck, lint, hygiene, build, test) green locallyChecklist
src/declare their class (Metadata-impact: reviewer: a helper field leaves the page; no data, permission, automation or protocol change)