This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 29 Aug, 2022 2 commits
  2. 15 Aug, 2022 2 commits
    • Phil Renaud's avatar
      Handle conflict swith a cas qp on save and create (#14100) · 17005261
      Phil Renaud authored
      * Handle conflict swith a cas qp on save and create
      
      * Notify error and give them refresh or overwrite options
      
      * Merge conflict missed, resolved
      
      * Mirage fixture
      
      * Integration test
      
      * Bracket closed (thx jai)
      
      * Adjust tests to account for number of variables with auto-conflicter
      17005261
    • Phil Renaud's avatar
      UI variables made to be unique by namespace and path (#14072) · 9f51a5de
      Phil Renaud authored
      * Starting on namespaced id
      
      * Traversal for variables uniqued by namespace
      
      * Delog
      
      * Basic CRUD complete w namespaces included
      
      * Correct secvar breadcrumb joining and testfix now that namespaces are included
      
      * Testfixes with namespaces in place
      
      * Namespace-aware duplicate path warning
      
      * Duplicate path warning test additions
      
      * Trimpath reimplemented on dupe check
      
      * Solves a bug where slash was not being passed to the can write check
      
      * PR fixes
      
      * variable paths integration test fix now uses store
      
      * Seems far less hacky in retrospect
      
      * PR feedback addressed
      
      * test fixes after inclusion of path as local non-model var
      
      * Prevent confusion by dropping namespace from QPs on PUT, since its already in .data
      
      * Solves a harsh bug where you have namespace access but no secvars access (#14098)
      
      * Solves a harsh bug where you have namespace access but no secvars access
      
      * Lint cleanup
      
      * Remove unneeded co...
      9f51a5de
  3. 02 Aug, 2022 1 commit
  4. 22 Jul, 2022 1 commit
    • Jai's avatar
      ui: add namespace filter to `variables.index` (#13618) · 6602659d
      Jai authored
      
      * ui: add namespace filter feature
      
      ui:  add namespace filtering to variables.index
      
      test:  namespace filter
      
      refact:  fix action in template
      
      ui:  move data fetching and query param logic to
      
      ui:  controller query parameter logic
      
      ui:  prevent  from forwarding query param
      
      ui:  create variables controller
      
      refact:  use dependency injection for controlling parent qp
      
      chore: clean-up reset in  route
      
      chore:  clean-up reset in  route
      
      * ui:  add namespace filter to secure var form (#13629)
      
      ui:  update variable factory to accept namespaces
      
      refact:  update  api to accept disabled
      
      ui:  add namespace setting logic to form
      
      refact:  remove debugger
      
      refact:  get correct selectors for
      
      ui:  move data loading to namespace-filter component
      
      chore:  prettify template
      
      ui: update factory to handle namespace setting
      
      refact:  remove inline styling for grid class
      
      * ui:  fix placement of filter in `SecureVariablesForm` (#13762)
      
      * refact:  conditionally render css class
      
      * chore:  remove unused CSS property
      
      * refact:  edit path-input class to prevent textarea override
      
      * refact:  inject missing store service (#13763)
      
      * chore:  patch fixes for when no default namespace is available (#13782)
      
      * test:  add tests for namespace filtering conditions (#13816)
      
      * test:  add tests for namespace filtering and namespaces appearing in form
      
      * patch namespace related issue to saving and querying (#13825)
      
      * refact:  use namespace id, not entity
      
      * refact:  update adapter to edit request to include qp
      
      * ui: early exit if no snapshot
      
      * refact:  test passes wrong interface to method
      
      * chore:  add missing url update URL builder
      
      * refact:  model in  doesn't have absolutePath
      
      * Align error message
      
      * chore:  update tests (#13905)
      
      * chore:  patch brittle tests with better selectors
      
      * chore:  update assertion count
      Co-authored-by: default avatarPhil Renaud <phil@riotindustries.com>
      6602659d
  5. 20 Jul, 2022 1 commit
    • Phil Renaud's avatar
      Change path-linked-variables to start with nomad/jobs/, instead of jobs/ (#13862) · 6468714b
      Phil Renaud authored
      * Support pathLinkedEntities starting with nomad/jobs/ instead of jobs/
      
      * links from jobs/groups/tasks to variables now look for nomad/jobs/ instead of jobs/
      
      * Tests updated to reflect nomad/jobs/ change
      
      * Acceptance test for disallowing nomad/foo/, and hint text updates
      
      * Defensive logic in case path not yet set
      
      * Allow exactly nomad/jobs as a variable path
      6468714b
  6. 11 Jul, 2022 11 commits
    • Phil Renaud's avatar
      Link Variables to Jobs (#13627) · bad23ee6
      Phil Renaud authored
      * Related entities scaffolded
      
      * Added hint on edit
      
      * Re-classic'd
      
      * Dont create entities when path goes beyond task level
      
      * only show the related entities hint for new vars, not edited ones
      
      * Unit tests for pathLinkedEntities
      
      * Acceptance tests for linked entities
      
      * Add hint on creation
      
      * Will be vs Is on @new boolean flag
      
      * Link styles and namespaces on links
      
      * Unused component class
      
      * Delog
      
      * Defensive shouldShowLinked
      
      * Properly instantiating the accessibilty check test
      bad23ee6
    • Phil Renaud's avatar
      Edit Secure Variables as JSON (#13461) · a769c12c
      Phil Renaud authored
      * Toying with insert and update helpers before translation func
      
      * Working prototype that lets you switch between json and tabular
      
      * No longer add the bonus items row in json mode
      
      * Trimmed the ivy from the codemirror (#13503)
      
      * Trimmed the ivy from the codemirror
      
      * editedJSONItems removal
      
      * De-debugger
      
      * Replaced other instances of IvyCodeMirror throughout the app (#13528)
      
      * Replaced other instances of IvyCodeMirror throughout the app
      
      * PR requests for codemirror modifier
      
      * Screen reader setting as param
      
      * Trying a simpler codemirror test helper
      
      * Lint removal
      
      * Screen Reader Label added for a11y
      
      * JSONViewer cleanup
      
      * JSON editor added to /new and all variables stringified before save or translate
      
      * Give users a foothold when editing an empty item in JSON mode
      
      * Copy the empty KV
      
      * No duplicate keys in KV
      
      * Better handling of cursor snapping in json edit field
      
      * Catch formatting errors on the fly
      
      * Basic...
      a769c12c
    • Phil Renaud's avatar
      Append an empty item when editing an existing Secure Variable (#13436) · 83fbe06e
      Phil Renaud authored
      * Did-insert modifier to add an extra row when editing
      
      * Defensive logic on model existing
      
      * Defensive pattern on copy keyValues
      83fbe06e
    • Phil Renaud's avatar
      Throw an error if you try to save a Secure Variable with no items (#13424) · 5fc980ff
      Phil Renaud authored
      * Error thrown if you have no KVs on save
      
      * Acceptance tests for flash messages and no-key-value adds
      
      * Post-hoc accounting for new variable path routing
      
      * Trim on key before validating it as existing
      5fc980ff
    • Jai's avatar
      ui: make eye toggles only toggle on/off for their respective row (#13406) · f060647c
      Jai authored
      * chore:  update tests to handle invidual toggle responsibility
      
      * chore:  prettify secure-variable-form template
      
      * ui:  extract input group markup into seperate component
      f060647c
    • Phil Renaud's avatar
      Toast-style global notification state (#13341) · 3bb71d04
      Phil Renaud authored
      * toast style notification init
      
      * Notificatino styles and messaging for variable save
      
      * pre-PR cleanup
      
      * Typo fix and 5sec timeout
      
      * Prevent text from overlapping the close button
      3bb71d04
    • Phil Renaud's avatar
      Secure Variables form validation improvements (#13335) · b5b310a1
      Phil Renaud authored
      * Validation tests for secure variables form: duplicate path error
      
      * Validation for dot in key name
      
      * Defensive pattern on copy keyValues
      b5b310a1
    • Phil Renaud's avatar
      variable index header and deletion hook (#13302) · c0bad152
      Phil Renaud authored
      * variable index header and deletion hook
      
      * Some visual improvements to edit header and back button
      
      * Mirage fixtures for variables
      
      * Deletion flow test
      
      * Account for disabled state of add-more button
      
      * Transition destination changes after design chat
      
      * Simplified parent folder path by adding to variable model
      
      * Lint cleanup
      
      * test update to reflect path redirect on delete
      
      * No longer have to re-traverse to a deleted var folder after deletion, tests updated
      c0bad152
    • Phil Renaud's avatar
      Notify a user if they try to make a variable with an existing path (#13278) · c2856df7
      Phil Renaud authored
      * Notify a user if they try to make a variable with an existing path
      
      * Stylize error fade
      
      * Bugfix: if you click the dupe link to a variable you havent previously loaded, you lack its keyvalues
      
      * rename and typefix for duplicate path warning
      c2856df7
    • Phil Renaud's avatar
      Secure Variables: Build a path tree and traverse it at /variables/*path (#13202) · 8cf81a9e
      Phil Renaud authored
      * Recursive trie-building with variable paths
      
      * tree structure applied to new path routes and a new util class
      
      * Breadcrumbs for SV paths and prompt when nothing exists at a path
      
      * Lint and test cleanup
      
      * Pre-review cleanup
      
      * lintfix
      
      * Abstracted pathtree each-ins into a new component class
      
      * Path tree component styles
      
      * Types added and PR feedback addressed
      
      * Path tree to variable paths
      
      * Slightly simpler path QP mods
      
      * More pr feedback handling
      
      * Trim moved into a function on variable model
      
      * Traversal and compaction tests for PathTree
      
      * Trim Path tests
      
      * Variable-paths component tests
      
      * Lint fixup for tests
      8cf81a9e
    • Phil Renaud's avatar
      Secure Variables UI: /variables/new and /variables/*path (#13069) · ca5969ef
      Phil Renaud authored
      * variables.new initialized
      
      * Hacky but savey
      
      * Variable wildcard route and multiple creatable at a time
      
      * multiple KVs per variable
      
      * PR Prep cleanup and lintfix
      
      * Delog
      
      * Data mocking in mirage for variables
      
      * Linting fixes
      
      * Re-implement absent params
      
      * Adapter and model tests
      
      * Moves the path-as-id logic to a serializer instead of adapter
      
      * Classic to serializer and lint cleanup
      
      * Pluralized save button (#13140)
      
      * Autofocus modifier and better Add More button UX (#13145)
      
      * Secure Variables: show/hide functionality when adding new values (#13137)
      
      * Flight Icons added and show hide functionality
      
      * PR cleanup
      
      * Linting cleanup
      
      * Position of icon moved to the right of input
      
      * PR feedback addressed
      
      * Delete button and stylistic changes to show hide
      
      * Hmm, eslint doesnt like jsdoc-usage as only reason for import
      
      * More closely match the button styles and delete test
      
      * Simpli...
      ca5969ef