fix(portal): 「我的软件包」改用权威归属 + 显示审核中的提交 - #20
Merged
Conversation
"My packages" derived ownership solely by parsing the deb Maintainer field for a GitHub noreply address, so every package published with a real email (fxcam, calendar, ...) was invisible to its uploader; fresh submissions were also invisible until merge + index rebuild, and the in-page index cache never expired, so even then a reload was required. - resolve ownership from the published owners.json (aggregated from the release manifests' authoritative uploaded_by; generated by the packages repo Pages build), keeping the noreply fallback for legacy packages - new GET /api/my-submissions: recent publish PRs of the caller (portal PRs matched by title, czdev PRs by author) so just-uploaded packages show up immediately as "under review" / "merged, index rebuilding" - index/owners caches now expire after 30s, are cache-busted with ?t=, and are dropped after a successful submit - worker submit/unpublish pre-checks and the upload preview also use owners.json instead of guessing from Maintainer - the Owner column shows @login when known (falls back to the email) Co-authored-by: Cursor <cursoragent@cursor.com>
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.
问题
#/mine只靠解析 deb Maintainer 的 noreply 邮箱判断归属:改动
owners.json(聚合 release manifest 的uploaded_by,见 feat(index): 发布 owners.json 权威包归属(修复门户「我的软件包」) packages#86),老包保留 noreply 兜底GET /api/my-submissions:列出本人最近的 publish PR(门户 PR 按标题匹配,czdev PR 按作者匹配),「我的软件包」把不在索引里的提交显示为「审核中」/「已合并,索引更新中…」?t=cache-buster,提交成功后立即失效Made with Cursor