API - Filter by version - `$filter=NormalizedVersion gt '9'` does not return any newer major versions
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- powershell
- Lĩnh vực
- api
Hướng nghiên cứu
Start by tracing how the PowerShell Gallery API applies filters and ordering to the Version and NormalizedVersion fields for package queries. Reproduce the supplied Az query and compare its results with the expected major-version behavior; done means the query returns the newest version at or above major version 9, including versions 10 and 11.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
If you want to specify a minimum major version to return, you can do $filter=NormalizedVersion gt '9'.
If the module you're searching for has newer major versions than 9, say 10, the API won't return it.
Example request for Az, where I want the newest version returned, but at least major version 9:
More human friendly view:
# Filter on Version
[uri]::EscapeUriString(
'https://www.powershellgallery.com/api/v2/Packages()?' +
"`$filter=Id eq 'Az' and Version ge '9'&" +
'$orderby=Version desc&' +
'$top=1&' +
'$select=NormalizedVersion,Version'
).Replace("'",'%27') | Set-Clipboard
# Filter on NormalizedVersion
[uri]::EscapeUriString(
'https://www.powershellgallery.com/api/v2/Packages()?' +
"`$filter=Id eq 'Az' and NormalizedVersion ge '9'&" +
'$orderby=NormalizedVersion desc&' +
'$top=1&' +
'$select=NormalizedVersion,Version'
).Replace("'",'%27') | Set-Clipboard
Expected behavior
- Example returns newest version, but at least version 9.
- I expected (as of writing) v11.5.0.
Actual behavior
Example returns version v9.7.1; the newest v9 version before major jumped to v10 and beyond.
Error details
No response
Environment data
Not relevant, API
Version
Not relevant, API
Visuals
No response
- Ngôn ngữ chính
- PowerShell
- Star
- 289
- Fork
- 83
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/PowerShellGallery
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
PowerShell/PowerShellGallery#357 · 3 bình luận · 4 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
PowerShell/PowerShellGallery#355 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 31/100
PowerShell/PowerShellGallery#354 · 1 bình luận · 3 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
PowerShell/PowerShellGallery#353 · 5 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
PowerShell/PowerShellGallery#350 · 7 bình luận · 8 reaction ·
Tất cả issue của PowerShell/PowerShellGallery
Issue tương tự
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timingĐang mởe2e-failure ready-to-code
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
devswha/herdr-web-ui#2884 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
.NET good first issue testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
HelloblueAI/HelloblueGK#311 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày