Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Fix to display IP Filter settings correctly #1145

Conversation

tingung
Copy link
Contributor

@tingung tingung commented Sep 4, 2019

Fixes #1078

Summary

Fix to display IP Filter settings correctly

  • Code refactor and minor bugs listed below
  • Update state with the value from json response to ensure IP Filter
    object in UI is updated
  • Move specificityOptions and typeOptions initialization to constructor
  • Move all the validation of the form upon saving to reduce code complexity
  • Replace toggle option of RuleSpecificity to use const String of
    IP_RANGE and SINGLE_IP to make the code simpler and more readable
  • Move code to clear SubnetMask just before update to prevent SubnetMask
    become blank when user switch in between IP_RANGE and SINGLE_IP option

Confirmation video - https://drive.google.com/open?id=1ntAIguD-GgT5ZuAqsLtEscN76-M_qbXG

Notes: I have tested the changes with 9.4.0 RC1.

- Code refactor and minor bugs listed below
- Update state with the value from json response to ensure IP Filter object in UI is updated
- Move specificityOptions and typeOptions initialization to constructor
- Move all the validation of the form upon saving to reduce code complexity
- Replace toggle option of RuleSpecificity to use const String of IP_RANGE and  SINGLE_IP to make the code simpler and more readable
- Move code to clear SubnetMask just before update to prevent SubnetMask become blank when user switch in between IP_RANGE and SINGLE_IP option
@tingung tingung closed this Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant