hunk.code_window: import { EdgeTypes } from '@/portainer/environments/types';
   import { getEnvironments } from '@/portainer/environments/environment.service';
   class AssoicatedEndpointsSelectorController {
     /* @ngInject */
     constructor($async) {
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit: import { getTags } from '@/portainer/tags/tags.service';
  
hunk.file_path: app/portainer/components/associated-endpoints-selector/associatedEndpointsSelectorController.js
hunk.type: add
file: import _ from 'lodash';
  
  export function idsToTagNames(tags, ids) {
    const filteredTags = _.filter(tags, (tag) => _.includes(ids, tag.Id));
    const tagNames = _.map(filteredTags, 'Name');
    return tagNames;
  }
  