Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quby-compiler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
RoQua
quby-compiler
Merge requests
!12
Add dsl for outcome schemas (tables) for roqua
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add dsl for outcome schemas (tables) for roqua
jb_roqua_outcome_schema
into
main
Overview
5
Commits
6
Pipelines
6
Changes
1
Merged
Jorn van de Beek
requested to merge
jb_roqua_outcome_schema
into
main
4 years ago
Overview
5
Commits
6
Pipelines
6
Changes
1
Expand
0
0
Merge request reports
Viewing commit
74f19cbc
Prev
Next
Show latest version
1 file
+
8
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
74f19cbc
Apply 1 suggestion(s) to 1 file(s)
· 74f19cbc
Jorn van de Beek
authored
4 years ago
lib/quby/compiler/outputs/roqua_serializer.rb
+
8
−
0
Options
@@ -75,6 +75,14 @@ module Quby
}
end
# configuration for outcome tables.
# tables:
# <outcome_table:Symbol>: # each pair is a table.
# score_keys: Set[<schema.key:Symbol>] # rows in the table
# subscore_keys: Set[<subschema.key:Symbol>] # columns in the table
# headers:
# <subscore_key:Symbol>: <subscore.label:String> # headers for each subscore key for all tables.
def
outcome_tables_schema
# hash of tables, with the score keys (rows) and subscore keys (columns) used for each
tables
=
Hash
.
new
{
|
hash
,
key
|
hash
[
key
]
=
{
score_keys:
Set
.
new
,
subscore_keys:
Set
.
new
}
}
Loading