[Feature] Match Enum Codes to String

Open
#1,699 0 comments 0 reactions 1 assignee View on GitHub

@megatnt1122 is already working on this.

Since Oct 16, 2025.

Assessment

This issue has not been assessed yet.

Description

Component: Database Component: Foxx Priority: Low Type: New Feature

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

  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.

More from ORNL/DataFed

All issues in ORNL/DataFed

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.