Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2069

Standardise resource type constants in admin UI

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.3.0, 1.4.0
    • None
    • AdminUI
    • None

    Description

      As of now, the following resource types exist on admin UI (see resourcetypes.service.ts):

      resourceTypes = ['Provider Configurations', 'Descriptors', 'Topologies', 'Service Definitions']; 

      As krisden pointed out, during the review of PR #169 it's not a good idea, and against any best practice in general, that there are constants with space-separated worlds. I'd suggest the following pattern:

      const PROVIDER_CONFIGURATIONS = 'Provider Configurations';
      const DESCRIPTORS = 'Descriptors';
      const TOPOLOGIES = 'Topologies';
      const SERVICE_DEFINITIONS = 'Service Definitions';
      const RESOURCE_TYPES = [PROVIDER_CONFIGURATIONS, DESCRIPTORS, TOPOLOGIES, SERVICE_DEFINITIONS];

      Once these constants are created they should be used within the project.

      Attachments

        Activity

          People

            Unassigned Unassigned
            smolnar Sandor Molnar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: