question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Obsolete tag shown as latest revision

See original GitHub issue

Please see github.com/PointCloudLibrary/pcl/issues/2644

image

The latest tag should be 1.9.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fregantecommented, Dec 13, 2018

in this case

So tags.some(tag => !/^[vr]?\d/.test(tag))

{
  repository(owner: "sindresorhus", name: "negative-zero") {
    refs(first: 1, refPrefix: "refs/tags/" , orderBy: {field: TAG_COMMIT_DATE, direction: DESC}) {
      nodes {
        name
      }
    }
  }
}
{
  "data": {
    "repository": {
      "refs": {
        "nodes": [
          {
            "name": "v2.0.0"
          }
        ]
      }
    }
  }
}
Previous query, didn't work if the repo only had release-less tags:
{
  repository(owner: "PointCloudLibrary", name: "pcl") {
    releases(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {
      nodes {
        tagName
      }
    }
  }
}
{
  "data": {
    "repository": {
      "releases": {
        "nodes": [
          {
            "tagName": "pcl-1.9.1"
          }
        ]
      }
    }
  }
}
0reactions
sindresorhuscommented, Dec 12, 2018

If a repo has non-regular version tags it just tries to sort them alphabetically

Instead of sorting alphabetically in this case, we could sort by tag date.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Obsolete tag shown as latest revision · Issue #1654 - GitHub
Programmatically speaking, in what case? Do we filter with a regex first? Or if any custom tags exist we just display the latest...
Read more >
AppSourceCop Hidden AS0072 - Business Central
This rule verifies that the version specified as obsolete tag for objects whose obsolete state (not obsolete, obsolete pending, or obsolete ...
Read more >
How to mark a method that has become obsolete in the next ...
You should mark the method as obsolete using the Obsolete annotation. Refer to ObsoleteAttribute for details. [Obsolete("Your warning ...
Read more >
The “version” attribute on the “html” element is obsolete. You ...
As this tag defines the start of the whole HTML document, it should appear only once. The old <acronym> element in previous versions...
Read more >
Code Inspection: Obsolete tag - PhpStorm - JetBrains
Code Inspection: Obsolete tag. Last modified: 05 December 2022. Configure inspections: Settings / Preferences | Editor | Inspections. Show intention ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found