-
Notifications
You must be signed in to change notification settings - Fork 21
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
Parse Java docs to pull useful information from mission model #1055
Closed
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
437df67
Prototype javadoc parsing
mattdailis 53babbe
Added @unit parsing
cohansen 55038c1
Finished adding units to parameters
cohansen 24ccfa2
Added resource types units
cohansen 6e69ede
Fixed a few tests that were failing on units
cohansen a01f7cf
Added the db migration for resource type units
cohansen 7dc3c11
Added computed attribute unit parsing
cohansen 501e136
Removed some redundant code
cohansen 8284cf0
Accidentaly removed this, putting it back
cohansen 8bba51f
Fixed tests that were broken by adding new MissionModel and ActivityT…
cohansen 4958b71
Fixed a typo in the migration for javadoc parsing
cohansen 44f8878
Fixed missing columns in GetActivityTypesAction
cohansen 360ff5a
Moved migration to 25 so it doesn't conflict with user_plan_snapshots
cohansen f460954
Changed @registeredState to @resourceName
cohansen e85d2dc
Removed @Aerie from tag
cohansen e19ca58
Added @aerie prefix to our custom tags
cohansen 58c112e
Added regex matching for resource units
cohansen e364c70
Removed logs, fixed unit parsing for strings after the unit tag, move…
cohansen f73583c
Converted all unit storage into existing columns
cohansen 65c597e
Fixed migration scripts, added blank units to resource types, removed…
cohansen 5207957
Updated gql queries and models to match the new unit changes for
cohansen 662a640
Reworked how we save units by moving into existing fields
cohansen 48eb205
Fixed some issues with the migration and also tests
cohansen 6d3a681
Moved units migration to 26
cohansen 153f38a
Reformatted migration files
cohansen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 4 additions & 4 deletions
8
deployment/hasura/metadata/databases/AerieMerlin/tables/public_resource_type.yaml
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
10 changes: 10 additions & 0 deletions
10
deployment/hasura/migrations/AerieMerlin/26_add_units_to_activity_types/down.sql
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 @@ | ||
alter table activity_type rename column parameter_definitions to parameters; | ||
alter table activity_type rename column computed_attribute_definitions to computed_attribute_value_schema; | ||
|
||
alter table resource_type rename column definition to schema; | ||
comment on column resource_type.definition is e'' | ||
'The structure of this resource type.'; | ||
|
||
alter table mission_model_parameters rename column parameter_definitions to parameters; | ||
|
||
call migrations.mark_migration_rolled_back('26'); |
10 changes: 10 additions & 0 deletions
10
deployment/hasura/migrations/AerieMerlin/26_add_units_to_activity_types/up.sql
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 @@ | ||
alter table activity_type rename column parameters to parameter_definitions; | ||
alter table activity_type rename column computed_attribute_value_schema to computed_attribute_definitions; | ||
|
||
alter table resource_type rename column schema to definition; | ||
comment on column resource_type.definition is e'' | ||
'The definition including the structure of this resource type.'; | ||
|
||
alter table mission_model_parameters rename column parameters to parameter_definitions; | ||
|
||
call migrations.mark_migration_applied('26'); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this file need to be modifying the entries in these columns, as the entries have additional keys?