Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TagDialog #871

Merged
merged 4 commits into from
Aug 20, 2018
Merged

Fix TagDialog #871

merged 4 commits into from
Aug 20, 2018

Conversation

swaterkamp
Copy link
Member

Fixing and changing include:

  • Load resources according to new API (resources are no longer listed in the Tag-object)
  • Change behavior of TagDialog concerning Resource selection:
    -- as a get... command yields max. 1000 elements, the resource list of tags with more than 1000 resources was cut when editing/saving. Also: manual selection of resources for tags of a certain size, does not really make sense.
    -- The new concept: For tags with just a few resources (<200 atm) don't change behavior. For more than a few resources, do not show the resource selection elements and thereby don't override the original list when saving. If users want to change resources of a huge bulk tag, it is easier to delete the old tag and create a new one with adjusted resources.

@codecov
Copy link

codecov bot commented Aug 15, 2018

Codecov Report

Merging #871 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #871      +/-   ##
=========================================
- Coverage    7.58%   7.58%   -0.01%     
=========================================
  Files         824     824              
  Lines       26237   26252      +15     
  Branches     5864    5871       +7     
=========================================
  Hits         1991    1991              
- Misses      21860   21875      +15     
  Partials     2386    2386
Impacted Files Coverage Δ
gsa/src/web/pages/tags/dialog.js 0% <0%> (ø) ⬆️
gsa/src/web/pages/tags/resourcelist.js 0% <0%> (ø) ⬆️
gsa/src/web/pages/tags/component.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1a83ab...e389289. Read the comment docs.

Copy link
Contributor

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit 738eba6 should have been merged with 9006293 via rebaseing but never mind.

Just a note: maybe it's better to also add a sort column to the filter to not rely on the default sort.

resourceType :
first(resource_types, [])[0],
resource_types,
resources_action:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variables should be changed to camelCase in another commit or PR.

@swaterkamp swaterkamp merged commit 6884548 into greenbone:master Aug 20, 2018
@swaterkamp swaterkamp deleted the Tags branch November 30, 2018 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants