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
3
All threads resolved!
Hide all comments
Merged
Jorn van de Beek
requested to merge
jb_roqua_outcome_schema
into
main
4 years ago
Overview
5
Commits
6
Pipelines
6
Changes
2
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Compare
version 4
version 5
74f19cbc
4 years ago
version 4
d4b857d5
4 years ago
version 3
e66fe0df
4 years ago
version 2
d47005c3
4 years ago
version 1
7d28678b
4 years ago
main (base)
and
latest version
latest version
7ac61927
6 commits,
4 years ago
version 5
74f19cbc
5 commits,
4 years ago
version 4
d4b857d5
4 commits,
4 years ago
version 3
e66fe0df
3 commits,
4 years ago
version 2
d47005c3
2 commits,
4 years ago
version 1
7d28678b
1 commit,
4 years ago
Show latest version
2 files
+
14
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
lib/quby/compiler/outputs/roqua_serializer.rb
+
9
−
1
Options
@@ -75,6 +75,14 @@ module Quby
}
end
# configuration for outcome tables.
# tables:
# <outcome_table_name:Symbol>: # each entry 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
}
}
@@ -91,7 +99,7 @@ module Quby
{
headers:
headers
,
tables:
tables
.
values
,
tables:
tables
,
}
end
end
Loading