[Feature] Match Enum Codes to String
@megatnt1122 is already working on this.
Since Oct 16, 2025.
Assessment
This issue has not been assessed yet.
Description
Within the support.js file are enum codes that could be associated with strings for better logging practices.
function getEnumKeyByValue(enumObj, value) {
return Object.keys(enumObj).find(key => enumObj[key] === value);
}
const name = getEnumKeyByValue(Color, 2);
console.log(name); // "Green"
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 14
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ORNL/DataFed
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Type: Docs - User
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
mattgodbolt/owlet-editor#207 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 1/5 Under an hour Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nearform/unbreakci#897 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
ome/ngff-rfc8-revisions#62 ·
Maintainers usually reply within 3 days