ManageIQ / ManageIQ/miq_bot

New OffenseMessage builder does not sort locators properly.

Open
#202 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted pinned
Dominant language
Ruby
Stars
16
Forks
39
Avg merge
1d 11h
Merged PRs (30d)
8

Description

Since it does string sort, `Line 103` comes before `Line 5`. We probably need to change locator from being string based to being numeric, or specific on line vs commit_sha or something. @bdunne

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating the New OffenseMessage builder and the code that sorts its locators, then inspect how line and commit_sha locators are represented. Done means locators sort numerically so Line 5 precedes Line 103, with the relevant existing tests updated or added.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.