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

[EUWE] Suppots dots in custom attributes #14363

Merged
merged 6 commits into from
Mar 20, 2017

Commits on Mar 15, 2017

  1. Changed spec for report with custom attributes to add

    special characters in custom attributes
    lpichler committed Mar 15, 2017
    Configuration menu
    Copy the full SHA
    dd5aa33 View commit details
    Browse the repository at this point in the history
  2. Escape special characters in value2tag

    Field with virtual custom attributes  don’t contains associations so it don’t contain “.” as separator
    
    it has always form:
    
    <Model>-virtual_custom_attribute_<name_of_attribute>
    
    After this  we need to escape it back because there was dynamic method created with unescaped form,
    and such method will be called in evaluation.
    lpichler committed Mar 15, 2017
    Configuration menu
    Copy the full SHA
    931b45b View commit details
    Browse the repository at this point in the history
  3. Remove ‘/virtual/’ by pattern with gsub

    before:
    ns= ‘/virtual/parent_resource_pool/name’
    predicate = ns.split("/")
    => ["", "virtual", "parent_resource_pool", "name"]
    predicate = ns.split(“/“)[2..-1] # throw away /virtual
    => ["parent_resource_pool", "name"]
    
    after: (same)
    ns= ‘/virtual/parent_resource_pool/name’
    ns.gsub!("/virtual/","")  # throw away /virtual
    => ‘parent_resource_pool/name’
    predicate = ns.split("/")
    => ["parent_resource_pool", "name"]
    lpichler committed Mar 15, 2017
    Configuration menu
    Copy the full SHA
    695a516 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    140e822 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2017

  1. Change REGEX for covering virtual custom attributes with special char…

    …acters
    
    now there is allowed to have special characters as `-` and `.` `/`
    lpichler committed Mar 16, 2017
    Configuration menu
    Copy the full SHA
    993aef8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5bf37f View commit details
    Browse the repository at this point in the history