Repository navigation
chore(upstream): merge makeplane/plane v1.5.1 - #62
Merged
Merged
Conversation
…akeplane#10274) In tabbed navigation the project header (z-20, painted later) sits on top of the mobile sidebar (also z-20), so it covers the sidebar's own toggle and only the project icon shows. The sidebar also stayed open after a project was picked, unlike every other sidebar link on mobile. - raise the mobile sidebar overlay above the page headers - collapse the sidebar on mobile when a project is opened
…tor (makeplane#10312) Mirrors the web app rule for updating an intake work item: the creator, a project admin, or a workspace admin who is a member of the project.
…sponse (makeplane#10303) AccountSerializer returned the stored OAuth access, refresh and id tokens to the browser. No client reads them, so they are no longer serialised.
…e#10315) Label, state and workspace-leave writes ran their cache invalidation before the role check. The permission decorator now sits outermost, so a denied request no longer touches the cache.
…10324) Both the web and the public API intake serializers now reject a duplicate_to work item that does not belong to the intake item's project.
…0326) Public API project list, lite list and detail no longer return public projects to workspace guests; the project summary needs active project membership or workspace admin. Workspace estimates and entity-search project results follow the project list's visibility.
* fix(security): make page system fields read-only on the page serializer is_locked, archived_at and the audit fields are no longer writable through page create/update; lock state and archival only change through the dedicated lock and archive endpoints. * test: keep endpoint calls out of assert statements in page read-only tests --------- Co-authored-by: Sriram Veeraghanta <veeraghanta.sriram@gmail.com>
…10325) The workspace user-profile endpoint and the public API project member endpoints no longer return other members' email addresses to workspace guests, matching the workspace member list. The public API project member list also returns active members only.
…lane#10273) * fix(web): translate hardcoded rich filter and Power K strings (makeplane#10272) The rich filters row and the top-nav Power K input rendered several English literals that never went through t(), so they stayed English in every locale: - "Clear all" fallback and the "Filters" modal button label - "Remove filter" aria-label on the condition close button - "Invalid filter" label and its tooltip - "Search commands..." placeholder in the Power K input - hardcoded "Save as" passed as saveViewOptions.label in the project view and workspace view layouts (the component already falls back to the translated rich_filters.view_controls.save_as) Reuse existing common.clear_all / common.filters keys and add rich_filters.filter_item.{remove,invalid,invalid_tooltip} and power_k.search_menu.search_commands to all 22 locales. Touching top-nav-power-k.tsx made the pre-commit hook enforce its existing lint warnings, so fix those too: - add the missing isOpen / containerRef deps to handleKeyDown, so Arrow/Enter no longer read a stale isOpen after the panel opens without the search term changing - add inputRef to the ref-registration effect deps - mark the click-to-focus search wrapper role="presentation" instead of role="button"; keyboard users focus the input directly Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(web): translate rich filter property and operator labels (makeplane#10272) Filter chips still read "Assignees is …" / "Start date between …" in every locale: property labels are hardcoded in the packages/utils filter configs and operator labels come from the @plane/constants label maps, neither of which can call t(). Property labels - TCreateFilterConfigParams accepts an optional `label`, which the config factories already spread over their English default. - useWorkItemFiltersConfig passes translated labels, reusing existing keys (common.assignees, start_date, common.state_group, ...) plus a new rich_filters.properties.subscriber. Labels are resolved to plain strings first so each config only rebuilds when the language changes (t() itself is a new function every render). - The add-filter dropdown search now matches the translated label. Operator labels - Add CORE_(DATE_)OPERATOR_LABEL_I18N_KEYS_MAP next to the label maps and partial OPERATOR_/DATE_OPERATOR_LABEL_I18N_KEYS_MAP aggregates; operators without a key keep their English label. - FilterConfig.getLabelI18nKeyForOperator mirrors getLabelForOperator (custom operatorLabel overrides return no key), and operator options carry labelI18nKey. - FilterItem renders t(key) for the selected operator and the options. Also rename three shadowing callback params in the config hook that the pre-commit lint (--deny-warnings) flagged once the file was touched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…10323) Asset upload, bulk-bind and duplicate now keep the asset in the URL workspace and only bind it to an issue, comment or page of that workspace and project (or, on the workspace route, of a project the caller is an active member of), to the caller's own draft, or to the caller as user.
…#10320) The user activity feed, the user workspace dashboard issue lists and recent-visit entity data now follow the same visibility rule as the issue list, so they only carry data from projects the user is still an active member of.
…e#10319) Publishing, updating and unpublishing a project board now require the project admin role, matching the web app. Project members keep read access.
- POST /api/v1/.../intake-issues/ passed the name straight to Issue.objects.create, so a name over 255 chars raised a Postgres DataError and returned HTTP 500. - Validate against the Issue.name max_length before creating and return a 400 with a clear error message. - Add contract tests for names just over and exactly at the limit. - Reformat the on_results lambda in the list endpoint.
- Each per-issue email previously received all of the receiver's log ids, so concurrent send tasks updated the same email_notification_logs rows and deadlocked. The first email also marked every issue's logs as sent. - Track log ids per issue so each email only touches its own rows. - Set processed_at before dispatching send tasks so that update can't race their sent_at updates on the same rows. - Add a unit test checking each email gets only its issue's log ids.
- Previously the task created the row, then called save(update_fields=...) to set created_by/updated_by. If a concurrent task evicted the row (the cap-at-20 delete) in between, the second save raised "Save with update_fields did not affect any rows". - Set created_by_id/updated_by_id on the initial INSERT and pass disable_auto_set_user=True so BaseModel.save doesn't null them (there is no request user in a background task). - Add a unit test asserting audit fields are set with a single save.
Dispatch inputs, the ref name and job outputs were expanded into run scripts by Actions before the shell parsed them. Read them as shell variables instead, the way feature-deployment.yml already does.
…#10297) Every helm and kubectl call skipped TLS verification of the cluster API, and the Helm installer was fetched from the moving main branch in a job that holds the kubeconfig. Verify TLS and pin the installer to the v3.22.1 commit and version.
…10298) Third-party actions were referenced by mutable tag, including ones that receive Docker Hub credentials, the Tailscale OAuth secret or a write token. Pin each to the commit its tag points at today, with the version in a trailing comment.
…0300) Switching a provider off in the instance settings only hid it in the UI; the auth endpoints kept working while client credentials were set. Each provider now also requires its IS_<PROVIDER>_ENABLED value to be "1" and reports <PROVIDER>_NOT_CONFIGURED otherwise.
Six digits left too small a code space for the per-code and per-window attempt caps. The code stays numeric and is still generated with secrets; the sign-in forms do not validate its length, so only the example placeholders change.
The token value is meant to be visible only in the create response. Respond to PATCH with the read serializer, which excludes it.
validate_next_path now also requires the fully percent-decoded form of the path to pass its checks, and get_safe_redirect_url emits next_path as an encoded query value so it cannot add parameters or a fragment to the redirect URL. The two Gitea error redirects that passed next_path through unvalidated now use the validator.
…ne#10306) An editor file node's src is stored document content. Only a plain asset id (UUID) is now used to build an asset API path, and it is encoded where it is interpolated; any other non-http src results in no request. For legacy http sources the asset key is read from a parsed URL and must be a single plain path segment.
Clipboard markup is now parsed with DOMParser instead of being assigned to an element of the page's document, so it cannot load or run anything while image-components are prepared for duplication.
…0308) The link click handler now resolves the anchor that contains the click target, uses only that anchor's browser-resolved href (never the mark attribute from the editor state), applies the shared dangerous-scheme check, and opens with noopener,noreferrer, honouring only _blank and _self as targets.
Text, background and table colors are stored document content. A value is now written into an inline style only when it is a plain CSS color (hex, rgb()/hsl() with numeric arguments, or a var() reference to a custom property); anything else renders without a style declaration.
…e#10310) The live server's /pdf-export request now requires UUIDs for the page and project ids and applies the workspace slug rule already used when authorising documents. The page services encode these values where they build API request paths.
…0313) Page create and update now pass description_html through the shared HTML sanitiser, as the page description endpoint and work item serializers do.
…ne#10314) The export archive is only meant to be fetched through its presigned URL, so it is no longer uploaded with a public-read ACL, and its object key now carries the full export token.
…ane#10316) The API activity log is now written only for requests that authenticated with an API key, and the stored request and response bodies are truncated to a fixed length.
The work item link crawl (page title and favicon) and webhook delivery now stream the response and stop at a byte cap and a time limit instead of reading the whole body. An oversized favicon falls back to the default icon, and the webhook log keeps only the start of the response body.
…ane#10318) When CORS_ALLOWED_ORIGINS is not set, the allowed origins are now derived from the instance's own base URLs. If none of those is configured either, all origins are still allowed, but without credentials.
…10321) The sub-issues list now follows the same guest rule as the other issue sub-resources and the issue list: a guest on a project without guest_view_all_features gets 403 for a parent they did not create and only sees the sub-issues they created.
* fix: fill creds in compose from env * fix: fall back to default creds & respect pg port
…ne#9942) * Call `super().__init__()` in `S3Storage.__init__` so `location` gets set - `S3Storage` never called `super().__init__()`, so django-storages state such as `location` and `bucket_name` was never set up. - Because `S3Storage` is `STORAGES["default"]`, every direct FileField upload failed with `AttributeError: 'S3Storage' object has no attribute 'location'`. - Add a unit test checking that the base attributes are initialised. * fix: validate legacy multipart uploads and store them without an ACL With super().__init__() in place, S3Storage works as the default FileField storage again, so the legacy multipart routes (workspace and user file-assets, issue-attachments) accept uploads. - S3Storage sets default_acl = None, so a FileField upload sends no canned ACL whatever AWS_DEFAULT_ACL says. - FileAssetSerializer and IssueAttachmentSerializer reject an uploaded file whose declared content type is missing or outside ATTACHMENT_MIME_TYPES, or that is larger than FILE_SIZE_LIMIT, as the presigned routes do.
…keplane#10355) The settings sidebar groups its pages under category headings (Your profile, Developer, Work structure, Execution, Administration), and the work item sidebar shows "Completed on" before the completion date. These six common keys were copied from English during the react-i18next migration and were only translated for bg, de, ja and nl, so every other language showed them in English. Translate them for cs, es, fr, id, it, ko, pl, pt-BR, ro, ru, sk, tr-TR, ua, vi-VN, zh-CN and zh-TW, reusing each locale's existing wording for profile, developer, completed and administration and the register its "Your account" string already uses.
…#10305) * fix(security): require a verified email to accept invitations without the invite token Listing and accepting the invitations addressed to an account's email without the emailed invite token, and applying already-accepted invites at sign-in, now require a verified email. The flag is set where control of the mailbox is shown: a magic-code or OAuth sign-in, a completed password reset, and a confirmed email change. Accepting with the emailed token is unchanged and does not verify the account. * fix(web): keep the invite link through sign-in and sign-up A signed-out invitee who pressed Accept on /workspace-invitations was sent to sign in with only the pathname in next_path, so invitation_id, slug and token were gone by the time they had a session. Accepting with the emailed token is the route left open to an account whose email is not verified (a password sign-up, or any account on an instance without SMTP), so the link has to survive every way of getting a session. - 401 redirect: carry pathname + search in next_path. - OAuth start URLs: encode next_path, so its own query string reaches the API instead of being cut at the first "&". - Sign-in <-> sign-up: the header link, the clear-email button, the two error banner links and the /sign-in redirect route keep next_path. - Entry page: a signed-in user who is not onboarded yet follows a valid next_path instead of always going to /onboarding. The invite page is public, and accepting there gives the user a workspace, so onboarding then finishes without asking them to create one. * fix(api): return to next_path after a magic-code sign-in MagicSignInEndpoint sent an onboarded account with an auto-set password to "/" even when the form posted a next_path, so an existing code-only user who came from an invite link lost the link. next_path now wins, as it already does for password sign-in, both sign-ups and the OAuth callbacks. Contract tests: - test_invite_link_next_path_app.py: an invite link (invitation_id, slug and a token built like the real one) given as next_path comes back whole from password sign-in and sign-up, magic-code sign-in and sign-up, the Google, GitHub, GitLab and Gitea callbacks, and a failed sign-in's redirect back to the form. A new password account, still unverified, then accepts the invitation with the token from the link. - test_project_invitation_token_not_listed_app.py: the self-service project invitation list is routed but not implemented, so BaseViewSet answers 405 and an account on an invited address, verified or not, cannot read the invite token there.
* Fix burndown crash on non-numeric point estimates
- Point estimates are free text (e.g. "M = 2"), so calling float() on
them in burndown_plot raised ValueError and broke the chart.
- Add _estimate_to_float to treat unparseable values as 0.0 and use it
for the cycle total, module total, and completed-points sum.
- Add unit tests covering numeric, text, empty, and None values.
* Reject non-finite estimates in burndown point calculation
- float() accepts "nan", "inf", and overflow values like "1e309", so
free-text point estimates could still poison the burndown sum and
produce values that can't be serialized to JSON.
- Treat any non-finite parse result as 0.0, matching how other
non-numeric estimates are handled.
- Add test cases covering NaN, inf, and overflow inputs.
* fix: skip non-numeric point estimates in SQL and reject them on write
The burndown fix only covered the Python side. The cycle analytics and
progress views, the module views, cycle_transfer_issues and
build_graph_plot also ran Cast("estimate_point__value", FloatField()) in
SQL, so a points estimate holding text such as "M = 2" still returned a
500 (DataError: invalid input syntax for type double precision).
- plane/utils/estimate.py holds one rule for "is this value a number"
(a plain non-negative decimal), used by Python and SQL alike:
is_numeric_estimate, estimate_to_float and estimate_value_as_float().
- All 50 SQL casts now go through estimate_value_as_float(), which yields
NULL for non-numeric text so Sum skips it like a missing estimate.
burndown_plot uses the same rule, so chart totals and distributions
agree.
- Writes reject a non-numeric value for a points estimate with a 400:
both EstimatePointSerializers, bulk estimate create (validated before
the estimate is created), bulk estimate update (all resulting values
are checked before anything is saved, including on a type change to
points), single point create, and the public create and patch.
Categories estimates keep accepting text.
- effect 3.20.0 -> 3.22.4 (GHSA-7589-6fvf-x4pw) - soupsieve 2.10 -> 4.1.2 (GHSA-mmhr-3c5m-f64f, GHSA-7g44-g9rc-x53w, GHSA-6655-6qjp-jx7x)
…lane#10358) GitLab is written "Gitlab" in 437 values across all 21 locales; the translate skill's glossary spells it GitLab. Inflected and particle forms keep their endings ("z GitLabu", "GitLab에서"). The privacy policy and terms of service placeholders in the template publish form point to planes.so; the other placeholders on that form use plane.so.
…ane#10356) The translate skill lists Sticky and Stickies as Plane brand marks that stay in Latin in every locale, with "Note"/"Nota" among the forbidden renderings. Spanish rendered them as "nota adhesiva", Portuguese mixed "adesivo", "nota adesiva" and "anotação", French mixed "pense-bête" and "post-it", and Italian still had "adesivo" and "note adesive" in four strings, while bg, nl and most of it already keep Sticky. Use "sticky"/"stickies" in the 122 affected values, as a masculine noun like the existing Italian and French strings, and adjust articles and participles to agree. No other wording changes.
…akeplane#10368) * fix(api): keep invites claimable by email on instances without SMTP Without SMTP nothing can be mailed: no verification code reaches the account and no invite link reaches the invitee, so the verified-email gate from makeplane#10305 locked invitees out. can_claim_invites_by_email() keeps the gate when EMAIL_HOST is set and falls back to the email match when it is not. * fix(api): set project_id when applying accepted project invites - process_workspace_project_invitations built ProjectMember rows without project_id, so applying an accepted project invite on sign-in failed or created an orphaned membership. - Pass project_id from the invite so the member joins the right project. - Add a contract test covering an accepted project invite being applied on sign-in and the invite row being cleaned up.
…load (makeplane#10369) user_has_issue_permission let a work item's creator through before checking ProjectMember, so the v1 attachment upload (POST) and upload confirm (PATCH) endpoints stayed writable after the creator was removed from the project. Drop the creator shortcut from the helper; every caller now relies on the active-membership query. Active creators still pass via allowed_roles.
# Conflicts: # apps/web/services/api.service.ts
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
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
makeplane/planev1.5.1 intofoss-sandbox(which already carries v1.5.0 from chore(upstream): merge makeplane/plane v1.5.0 #61 and FOSS-835 self-revoke from feat(api): let an api token revoke itself via /api/v1/users/me/api-tokens/current/ (FOSS-835) #60). Tracks FOSS-840, part of train FOSS-838.apps/web/services/api.service.ts: kept our 401 handler and dropped upstream's hunk from [INFRA-1126] fix: require verified email to accept invites makeplane/plane#10305. The resolved file is byte-identical tofoss-sandbox./(for its native sign-in screen) and appendednext_pathplus the query string so invite links survive sign-in. Our handler already sends the full href asrdto oauth2-proxy, so invite query params survive; the security part of [INFRA-1126] fix: require verified email to accept invites makeplane/plane#10305 is the backend invite gate, which merged cleanly.EMAIL_HOSTin the bundle, so the gate falls back to email matching; new SSO users are created verified, SMB auto-join is unaffected.next_pathvalidation only touch native auth views, which ourauthentication/urls.pyremoves.x-mpass-edge-secret,x-auth-request-access-token) are kept andAPIKeyAuthenticationsetsapi_key_authenticated.CORS_ALLOWED_ORIGINSis empty; the bundle sets it.IS_GOOGLE_ENABLED,IS_GITHUB_ENABLED,IS_GITLAB_ENABLED,IS_GITEA_ENABLED,EMAIL_HOST.Testing
pnpm check:lint: 15/15 tasks, 0 errors;oxlint --deny-warningson the conflict file clean;pnpm turbo run check:types --filter=web: passpytest plane/tests(serial, postgres + redis, no RabbitMQ): merge 1627 passed / 196 failed vsfoss-sandbox1435 passed / 173 failed in the same setup. The 23 new failures are new upstream tests that hit our removed native auth routes (NoReverseMatch) or need RabbitMQ; 21 of them fail on pure upstream v1.5.1 in this setup too. No proxy-auth test regressed.AI disclosure