-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1000 from datacite/fair-viz-feature-11
Flattened Person-Worktype facets for Sankey Visualizations
- Loading branch information
Showing
9 changed files
with
636 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
class FlattenedCountType < BaseObject | ||
description "Flattened Count Type for Multi-level Facets" | ||
|
||
field :count, Int, null: true, description: "Count" | ||
field :data, [String], null: true, description: "Flattened facets" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
class MultiFacetType < BaseObject | ||
description "Multi-level Facets" | ||
|
||
field :id, String, null: true, description: "ID" | ||
field :title, String, null: true, description: "Title" | ||
field :count, Int, null: true, description: "Count" | ||
field :inner, [FacetType], null: true, description: "Inner facets" | ||
end |
Oops, something went wrong.