You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "matthiasblaesing (via GitHub)" <gi...@apache.org> on 2026/05/14 10:42:11 UTC

[PR] PP3: Sort plugin versions descending [netbeans-tools]

matthiasblaesing opened a new pull request, #79:
URL: https://github.com/apache/netbeans-tools/pull/79

   The plugin versions are currently listed in DB order/unordered. To improve usability the versions should be ordered in descending order. This assumes, that the most recent version is the most relevant one.
   
   It is assumed, that the versions all start with a dotted version number "1.2.3-RC1" for example.
   
   Closes: https://github.com/apache/netbeans/issues/9391


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79#issuecomment-4449942674

   @jkovalsky could you please have a look?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on code in PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79#discussion_r3243294123


##########
pp3/module/Application/src/Application/Entity/Plugin.php:
##########
@@ -203,4 +203,17 @@ private function sanitizePluginUrl($url) {
         return $url;
     }
 
+    public function getVersionsSorted($desc = true) {

Review Comment:
   There was no order imposed, so the order was what the DB gave. That can work, but the referenced issue shows that it breaks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "jkovalsky (via GitHub)" <gi...@apache.org>.
jkovalsky commented on code in PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79#discussion_r3244237700


##########
pp3/module/Application/src/Application/Entity/Plugin.php:
##########
@@ -203,4 +203,17 @@ private function sanitizePluginUrl($url) {
         return $url;
     }
 
+    public function getVersionsSorted($desc = true) {

Review Comment:
   Well, we can leave this parametrized sorting in case community prefers the other order in the future. In such case at least consider removing the unnecessary "true" parameters in the function calls in:
   
   - pp3/module/Application/view/application/index/catalogue.phtml
   - pp3/module/Application/view/application/plugin/_plugin-listrow.phtml



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on code in PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79#discussion_r3242963876


##########
pp3/module/Application/src/Application/Entity/Plugin.php:
##########
@@ -203,4 +203,17 @@ private function sanitizePluginUrl($url) {
         return $url;
     }
 
+    public function getVersionsSorted($desc = true) {

Review Comment:
   wondering: if the order was correct but the wrong way around, couldn't the ordered list be reversed without sorting versions?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on code in PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79#discussion_r3241490567


##########
pp3/module/Application/src/Application/Entity/Plugin.php:
##########
@@ -203,4 +203,17 @@ private function sanitizePluginUrl($url) {
         return $url;
     }
 
+    public function getVersionsSorted($desc = true) {

Review Comment:
   I admit, that it is a fallout from q hickup in development. I had the order wrong and as one direction as done, I did not throw away the opposite direction. If you think it should be removed, I'm willing to, but I did not see the harm.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79#issuecomment-4461495849

   Deployment is done.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on code in PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79#discussion_r3243016276


##########
pp3/module/Application/src/Application/Entity/Plugin.php:
##########
@@ -203,4 +203,17 @@ private function sanitizePluginUrl($url) {
         return $url;
     }
 
+    public function getVersionsSorted($desc = true) {

Review Comment:
   but there might be still valid reasons to sort - this looks good too



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on code in PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79#discussion_r3249526609


##########
pp3/module/Application/src/Application/Entity/Plugin.php:
##########
@@ -203,4 +203,17 @@ private function sanitizePluginUrl($url) {
         return $url;
     }
 
+    public function getVersionsSorted($desc = true) {

Review Comment:
   Valid point. Updated in place.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing merged PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] PP3: Sort plugin versions descending [netbeans-tools]

Posted by "jkovalsky (via GitHub)" <gi...@apache.org>.
jkovalsky commented on code in PR #79:
URL: https://github.com/apache/netbeans-tools/pull/79#discussion_r3241206351


##########
pp3/module/Application/src/Application/Entity/Plugin.php:
##########
@@ -203,4 +203,17 @@ private function sanitizePluginUrl($url) {
         return $url;
     }
 
+    public function getVersionsSorted($desc = true) {

Review Comment:
   Why do we introduce the _desc_ parameter if we never call this function with ascending order request?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists