Comment serialization cleanup part 1: Break out basic definition.
Review Request #13655 — Created March 21, 2024 and submitted
The way comments are serialized for use in Review UIs and the diff
viewer is extremely messy. This change is the first step of cleaning
that up.When I first converted the comment models to TypeScript, I mistakenly
marked the comment editor and comment dialog view'spublishedComments
as beingBaseComment[]
. These are in fact the serialized comment data
arrays. This change moves the definition of the serialized comment
interface out ofabstractCommentBlockModel.ts
into its own file, where
we can import it anywhere we need, and makes use of that definition
where appropriate.
Ran js-tests.
Summary | ID |
---|---|
de136a2ca4f428f967610da03047f135c16ac36c |
- Commits:
-
Summary ID 5e57a8ca3244423afcde23aed6e109570943e931 de136a2ca4f428f967610da03047f135c16ac36c - Diff:
-
Revision 2 (+138 -136)
Checks run (2 succeeded)
-
-
Just to throw out the question here, do we want to alphabetize by imported name, or group
type
separately from non-type
within the list? I kind of like the idea of keeping them in separate groups within the same import list, so it's very clear where things go and each grouping can be sorted independently.