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

Commit

Permalink
Modify visibility data's reason as required by UI and associated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboyd authored and sduvvuri-ebsco committed Jan 17, 2018
1 parent 49bdfc2 commit 4c11878
Show file tree
Hide file tree
Showing 6 changed files with 418 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ log
tmp
.env
telepresence.log
.byebug_history
.vscode/launch.json
coverage
14 changes: 14 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Purpose
_Describe the purpose of the pull request. Include background information if necessary._

## Approach
_How does this change fulfill the purpose?_

#### TODOS and Open Questions
- [ ] Use GitHub checklists. When solved, check the box and explain the answer.

## Learning
_Describe the research stage. Add links to blog posts, patterns, libraries or addons used to solve this problem._

## Screenshots
_Let's see those sweet visuals!_
7 changes: 6 additions & 1 deletion app/serializable/serializable_customer_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ class SerializableCustomerResource < SerializableResource
@object.resource.vendorName
end
attribute :visibilityData do
@object.resource.visibilityData
visibility = @object.resource.visibilityData
if visibility['isHidden']
visibility['reason'] =
visibility['reason'] == 'Hidden by EP' ? 'Set by System' : ''
end
visibility
end
attribute :managedCoverages do
@object.resource.managedCoverageList
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c11878

Please sign in to comment.