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

Enables tag batch editing (exportable/hidden) #3660

Open
wants to merge 2 commits into
base: 2.4
Choose a base branch
from

Conversation

ancailliau
Copy link
Contributor

The exportable and hidden flag can be edited in batch, from the tag list page.

Release Type: Minor

Copy link
Member

@iglocska iglocska left a comment

Choose a reason for hiding this comment

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

Looks very good, could you change the few points noted above?

throw new NotFoundException('You don\'t have permission to do that.');
}
$tag_ids = json_decode($this->request->data['Tag']['tag_ids']);
$tags = $this->Tag->find('all', array(
Copy link
Member

Choose a reason for hiding this comment

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

best to introduce a check here for empty $tag_ids, just in case so it doesn't find every exisitng tag.

'recursive' => -1,
));

$hidden = $this->request->data['Tag']['hidden'];
Copy link
Member

Choose a reason for hiding this comment

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

Check for empty, user might be coming from the API and not set that field

@coveralls
Copy link

coveralls commented Sep 10, 2018

Coverage Status

Coverage remained the same at ?% when pulling 362a93d on ancailliau:batch-tag-edit into f1f70ca on MISP:2.4.

@ancailliau
Copy link
Contributor Author

The PR is updated according the comments.

@ancailliau
Copy link
Contributor Author

@iglocska Up, as discussed yesterday :)

@SteveClement
Copy link
Member

Tested NOT working.

You select tags, toggle them in the new UI and nothing happens.

Perhaps some things have changed since September 2018.

Will take a quick look later on.

@SteveClement
Copy link
Member

@ancailliau any upates on this PR?

@ancailliau
Copy link
Contributor Author

Sorry, I was abroad. I will check and update asap. Thx for the reminder.

@adulau adulau added S: not reviewed Status: not reviewed. This issue has not been reviewed yet and removed S: not reviewed Status: not reviewed. This issue has not been reviewed yet labels May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: not reviewed Status: not reviewed. This issue has not been reviewed yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants