-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Index to comment for migrations and mirroring #18806
Conversation
What's the definition of comment index? |
It is the unique identifier of the comment. It could be named ID, Number or Index. The name |
The CI failure is unrelated to this PR, could someone please restart it?
|
Comments have an id (see Gitea[0], GitLab[1], GitHub[2], etc.), and the comment migration format must represent it during migrations so that it can be used during mirroring or incremental migrations. [0] https://try.gitea.io/api/swagger#/issue/issueGetComment [1] https://docs.gitlab.com/ee/api/discussions.html#get-single-issue-discussion-item [2] https://docs.github.com/en/rest/reference/issues#get-an-issue-comment Signed-off-by: Loïc Dachary <loic@dachary.org>
5642b93
to
016ef12
Compare
It would be too complicated to add the comment identifier in the database. This pull request was simplified to only add the information in the migration files. It can later be used to set the information in the |
The Index is per repository or per issue? Since there is no id or index from Github, what should be stored? |
It depends. The index for
There is an Maybe I misunderstood your question? |
Codecov Report
@@ Coverage Diff @@
## main #18806 +/- ##
=======================================
Coverage ? 46.56%
=======================================
Files ? 854
Lines ? 122889
Branches ? 0
=======================================
Hits ? 57218
Misses ? 58749
Partials ? 6922
Continue to review full report at Codecov.
|
In simple words this PR provide a value for the Answered by dachary in matrix:
|
make l-g-t-m work |
make l-g-t-m work |
* giteaofficial/main: [skip ci] Updated translations via Crowdin Add Index to comment for migrations and mirroring (go-gitea#18806) Support ignore all santize for external renderer (go-gitea#18984)
Comments have an id (see Gitea[0], GitLab[1], GitHub[2], etc.), and the comment migration format must represent it during migrations so that it can be used during mirroring or incremental migrations. [0] https://try.gitea.io/api/swagger#/issue/issueGetComment [1] https://docs.gitlab.com/ee/api/discussions.html#get-single-issue-discussion-item [2] https://docs.github.com/en/rest/reference/issues#get-an-issue-comment Signed-off-by: Loïc Dachary <loic@dachary.org> Co-authored-by: Loïc Dachary <loic@dachary.org>
See original merge request from Loïc Dachary @ forgefriends
Comments have an id (see Gitea[0], GitLab[1] or GitHub[2], etc.), and the
comment migration format must represent it during migrations so that
it can be used during mirroring or incremental migrations.
[0] https://try.gitea.io/api/swagger#/issue/issueGetComment
[1] https://docs.gitlab.com/ee/api/discussions.html#get-single-issue-discussion-item
[2] https://docs.github.com/en/rest/reference/issues#get-an-issue-comment