To ensure API responses are consistent. Also most of these properties
are expected from a consumer point of view, even if null.
Mark Error schema properties nullable where not in required list.
* Rename Topic last_visit_time to last_visited_at
For consistency with other DateTime properties.
* Rename Comment votes to vote_count
For consistency with Topic property names.
* Rename pagination num_items to item_count
For consistency with other "count" properties.
* Get SimpleHoursPeriod directly, not via marshmallow schema
Mentioning marshmallow in imports is misleading here, since we are
constructing the result dict by hand and not using marshmallow
to generate the OpenAPI response.
* Rename API serialize methods to mention API
This differentiates from the Marshmallow Schema dump method
which is used in the JSON renderer in json.py
If a topic tag is set to "null", the data in the column will have double
quotes around it (to distinguish it from an actual null value). This
wasn't being handled and would cause a crash when trying to parse the
value.
Now that we have more subgroups, it was an issue that visiting a parent
group would always show the topics from all of the subgroups, regardless
of whether you were subscribed to them or not.
This changes it so that, by default, only topics from subgroups the user
is subscribed to will be shown. There is also a link at the top of the
listing to toggle to the other view (all subgroups or only subscribed
subgroups).
Fixes#371.
Adds `.is-comment-by-op` class even if the comment is new or by
the current user. This fixes the bolding of the "(OP)" tag and
preserves the colors from `new` or `mine`, which have priority
over `op` due to their ordering in `_comment.scss`.
No associated issue, just a minor fix to make the Zenburn theme
use the correct colors for its button in the theme preview page,
rather than the default theme colors.
Fixes#659 by defaulting to the primary background color for normal
table rows. As noted in the issue, this still looks a bit weird,
but it's no longer inconsistent.