Commit 34bc52c
committed
feat(url-store): add sorting and fix linting issues
API Enhancements:
- Add sortBy and sortOrder query parameters to all listing endpoints
- Support sorting by: rank, traffic, url, createdAt, updatedAt
- Add rank and traffic fields to add/update operations
- Update OpenAPI documentation with new parameters and fields
Performance Improvements:
- Refactor bulk operations to use Promise.allSettled for parallel processing
- Replace sequential for-loops with parallel map operations
- Improve response time for bulk add/update/delete operations
Code Quality:
- Fix all 15 pre-existing linting errors
- Remove unused encodeUrlToBase64 function
- Eliminate no-continue statements (7 instances)
- Eliminate no-await-in-loop violations (7 instances)
- Fix trailing spaces and OpenAPI YAML syntax errors
- All linting now passing (0 errors)1 parent 5ee539e commit 34bc52c
File tree
3 files changed
+302
-100
lines changed- docs/openapi
- src/controllers
3 files changed
+302
-100
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
1668 | 1678 | | |
1669 | 1679 | | |
1670 | 1680 | | |
| |||
1684 | 1694 | | |
1685 | 1695 | | |
1686 | 1696 | | |
| 1697 | + | |
| 1698 | + | |
1687 | 1699 | | |
1688 | 1700 | | |
1689 | 1701 | | |
| |||
1707 | 1719 | | |
1708 | 1720 | | |
1709 | 1721 | | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
1710 | 1732 | | |
1711 | 1733 | | |
1712 | 1734 | | |
1713 | 1735 | | |
| 1736 | + | |
| 1737 | + | |
1714 | 1738 | | |
1715 | 1739 | | |
1716 | 1740 | | |
| |||
1726 | 1750 | | |
1727 | 1751 | | |
1728 | 1752 | | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1729 | 1763 | | |
1730 | 1764 | | |
1731 | 1765 | | |
| 1766 | + | |
| 1767 | + | |
1732 | 1768 | | |
1733 | 1769 | | |
1734 | 1770 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
21 | 36 | | |
22 | 37 | | |
23 | 38 | | |
| |||
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
73 | 103 | | |
74 | 104 | | |
75 | 105 | | |
| |||
123 | 153 | | |
124 | 154 | | |
125 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
126 | 171 | | |
127 | 172 | | |
128 | 173 | | |
| |||
0 commit comments