diff options
author | Andrew Fontaine <afontaine@gitlab.com> | 2019-02-11 10:25:10 -0500 |
---|---|---|
committer | Andrew Fontaine <afontaine@gitlab.com> | 2019-02-25 09:31:40 -0500 |
commit | fa882a674a389fc41a155f5ba72e757a7ea02d7a (patch) | |
tree | 93e922a7fccb2794a55f22b144b4906f772433b2 /changelogs | |
parent | 27ed9d958ad939d08d2457e1e64061c5e4f402e4 (diff) | |
download | gitlab-ce-fa882a674a389fc41a155f5ba72e757a7ea02d7a.tar.gz |
Sort Environments in Table by Last Updated
Ensure folders push to the top, if both have no last update, sort by
name.
The sorting algorithm should sort in the following priorities:
1. folders first,
2. last updated descending,
3. by name ascending,
the sorting algorithm must:
1. Sort by name ascending,
2. Reverse (sort by name descending),
3. Sort by last deployment ascending,
4. Reverse (last deployment descending, name ascending),
5. Put folders first.
It is done this way, as `underscore`'s sort API is very basic: simple
comparisons, sorting by ascending only.
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/46750-ci-empty-environment-is-created-even-when-a-job-isn-t-run-when-manual.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/46750-ci-empty-environment-is-created-even-when-a-job-isn-t-run-when-manual.yml b/changelogs/unreleased/46750-ci-empty-environment-is-created-even-when-a-job-isn-t-run-when-manual.yml new file mode 100644 index 00000000000..d052a28ab51 --- /dev/null +++ b/changelogs/unreleased/46750-ci-empty-environment-is-created-even-when-a-job-isn-t-run-when-manual.yml @@ -0,0 +1,5 @@ +--- +title: Sort Environments by Last Updated +merge_request: 25260 +author: +type: added |