Skip to content

Fixed DT syntax error #7909

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

Merged
merged 3 commits into from
Jul 9, 2020
Merged

Fixed DT syntax error #7909

merged 3 commits into from
Jul 9, 2020

Conversation

aburt-demisto
Copy link
Contributor

Status

  • [] In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: https://github.com/demisto/etc/issues/26310

Description

DT Syntax modified in NetOps playbook that is causing failure of status ID captures.

Minimum version of Demisto

  • 4.5.0
  • 5.0.0
  • 5.5.0

Does it break backward compatibility?

  • Yes
    • Further details:
  • No

Must have

  • Tests
  • Documentation

@content-bot content-bot added the Contribution Thank you! Contributions are always welcome! label Jul 7, 2020
@content-bot content-bot changed the base branch from master to contrib/aburt-demisto_aburt-netopsPB-change July 7, 2020 18:38
@content-bot
Copy link
Collaborator

Thank you for your contribution. Your generosity and caring are unrivaled! Rest assured - our content wizard @liorblob will very shortly look over your proposed changes.

@liorblob
Copy link
Contributor

liorblob commented Jul 8, 2020

@aburt-demisto Why make all of the operators != rather than !==?
also, please add release notes

@aburt-demisto
Copy link
Contributor Author

aburt-demisto commented Jul 8, 2020 via email

@liorblob
Copy link
Contributor

liorblob commented Jul 8, 2020

  1. DT is in javascript
  2. !== is more strict than != and should work. See https://stackoverflow.com/questions/359494/which-equals-operator-vs-should-be-used-in-javascript-comparisons
  3. if it does not work and != works please try to understand why.

@aburt-demisto
Copy link
Contributor Author

aburt-demisto commented Jul 8, 2020 via email

@liorblob
Copy link
Contributor

liorblob commented Jul 8, 2020

Can you please change it to be !==. And add release notes as well.

@aburt-demisto
Copy link
Contributor Author

aburt-demisto commented Jul 9, 2020 via email

@liorblob
Copy link
Contributor

liorblob commented Jul 9, 2020

Thanks.
One last thing, can you run demisto-sdk update-release-notes -p PAN-OS -u revision to update the release notes for the pack?
make sure to update the added file under the ReleaseNotes directory inside the pack.

@aburt-demisto
Copy link
Contributor Author

aburt-demisto commented Jul 9, 2020 via email

@liorblob
Copy link
Contributor

liorblob commented Jul 9, 2020

I guess that's on us. I'll take care of it

@liorblob liorblob merged commit dc88f96 into demisto:contrib/aburt-demisto_aburt-netopsPB-change Jul 9, 2020
@liorblob liorblob mentioned this pull request Jul 9, 2020
@content-bot content-bot mentioned this pull request Jul 9, 2020
9 tasks
yuvalbenshalom added a commit that referenced this pull request Jul 10, 2020
* Fixed DT syntax error (#7909)

* Fixed DT syntax error

* Fixed DT syntax error

* Fixed DT syntax error

Co-authored-by: Adam Burt - Demisto <[email protected]>

* change

* unreleased

* RN

* fix version in pack_metadata.json

* fix RN after review

Co-authored-by: Adam Burt - Demisto <[email protected]>
Co-authored-by: Adam Burt - Demisto <[email protected]>
Co-authored-by: ybenshalom <[email protected]>
BenSterenson pushed a commit to BenSterenson/content that referenced this pull request Jul 12, 2020
* Fixed DT syntax error (demisto#7909)

* Fixed DT syntax error

* Fixed DT syntax error

* Fixed DT syntax error

Co-authored-by: Adam Burt - Demisto <[email protected]>

* change

* unreleased

* RN

* fix version in pack_metadata.json

* fix RN after review

Co-authored-by: Adam Burt - Demisto <[email protected]>
Co-authored-by: Adam Burt - Demisto <[email protected]>
Co-authored-by: ybenshalom <[email protected]>
hod-alpert pushed a commit that referenced this pull request Jul 19, 2020
* Fixed DT syntax error (#7909)

* Fixed DT syntax error

* Fixed DT syntax error

* Fixed DT syntax error

Co-authored-by: Adam Burt - Demisto <[email protected]>

* change

* unreleased

* RN

* fix version in pack_metadata.json

* fix RN after review

Co-authored-by: Adam Burt - Demisto <[email protected]>
Co-authored-by: Adam Burt - Demisto <[email protected]>
Co-authored-by: ybenshalom <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contribution Thank you! Contributions are always welcome!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants