Skip to content

Commit

Permalink
VariableRelationships
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepsinn committed Nov 16, 2023
1 parent 7af2835 commit 51e4390
Show file tree
Hide file tree
Showing 547 changed files with 1,658 additions and 1,904 deletions.
2 changes: 1 addition & 1 deletion apps/dfda-1/app/Astral/Actions/CorrelateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(Request $request){
$resource = $request->resource();
$label = $resource::label();
$this->confirmText =
"You can see your correlations by clicking Correlations in the menu. Would you like to correlate?";
"You can see your user_variable_relationships by clicking VariableRelationships in the menu. Would you like to correlate?";
$this->name = "Correlate $label";
}
/**
Expand Down
6 changes: 3 additions & 3 deletions apps/dfda-1/app/Astral/Lenses/CorrelationInvalidLens.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use App\Models\BaseModel;
use App\Astral\Metrics\InvalidAnalyzablesPartition;
use App\Astral\BaseAstralAstralResource;
use App\Properties\Correlation\CorrelationCauseNumberOfProcessedDailyMeasurementsProperty;
use App\Properties\Correlation\CorrelationCauseNumberOfRawMeasurementsProperty;
use App\Properties\Correlation\CorrelationIdProperty;
use App\Properties\UserVariableRelationship\CorrelationCauseNumberOfProcessedDailyMeasurementsProperty;
use App\Properties\UserVariableRelationship\CorrelationCauseNumberOfRawMeasurementsProperty;
use App\Properties\UserVariableRelationship\CorrelationIdProperty;
use App\Traits\AnalyzableTrait;
use Illuminate\Http\Request;
use App\Http\Requests\AstralRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public function name(): string{
public static function query(LensRequest $request, $query){
return $request->withOrdering($request->withFilters($query
// ->select( [
// Correlation::FIELD_ID,
// Correlation::FIELD_ANALYSIS_STARTED_AT,
// Correlation::FIELD_INTERNAL_ERROR_MESSAGE,
// UserVariableRelationship::FIELD_ID,
// UserVariableRelationship::FIELD_ANALYSIS_STARTED_AT,
// UserVariableRelationship::FIELD_INTERNAL_ERROR_MESSAGE,
// ])
->whereNotNull(UserVariableRelationship::FIELD_INTERNAL_ERROR_MESSAGE)
->where(UserVariableRelationship::FIELD_CAUSE_NUMBER_OF_PROCESSED_DAILY_MEASUREMENTS, 0)
Expand Down
6 changes: 3 additions & 3 deletions apps/dfda-1/app/Astral/Lenses/InvalidRecordsLens.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public function __construct(BaseProperty $property){
public static function query(LensRequest $request, $query){
return $request->withOrdering($request->withFilters($query
// ->select( [
// Correlation::FIELD_ID,
// Correlation::FIELD_ANALYSIS_STARTED_AT,
// Correlation::FIELD_INTERNAL_ERROR_MESSAGE,
// UserVariableRelationship::FIELD_ID,
// UserVariableRelationship::FIELD_ANALYSIS_STARTED_AT,
// UserVariableRelationship::FIELD_INTERNAL_ERROR_MESSAGE,
// ])
->whereNotNull(UserVariableRelationship::FIELD_INTERNAL_ERROR_MESSAGE)
->orderBy(UserVariableRelationship::FIELD_ANALYSIS_STARTED_AT, BaseModel::ORDER_DIRECTION_DESC)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@
use App\Buttons\QMButton;
use App\Models\UserVariableRelationship;
class CreateCorrelationButton extends QMButton {
public $accessibilityText = 'Create Correlation';
public $action = 'datalab/correlations/create';
public $accessibilityText = 'Create UserVariableRelationship';
public $action = 'datalab/user_variable_relationships/create';
public $color = UserVariableRelationship::COLOR;
public $fontAwesome = UserVariableRelationship::FONT_AWESOME;
public $id = 'datalab-correlations-create-button';
public $id = 'datalab-user_variable_relationships-create-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $link = 'datalab/correlations/create';
public $link = 'datalab/user_variable_relationships/create';
public $parameters = [
'middleware' => [
'web',
'auth',
],
'as' => 'datalab.correlations.create',
'as' => 'datalab.user_variable_relationships.create',
'uses' => 'App\\Http\\Controllers\\DataLab\\CorrelationController@create',
'controller' => 'App\\Http\\Controllers\\DataLab\\CorrelationController@create',
'namespace' => 'App\\Http\\Controllers',
'prefix' => '/datalab',
'where' => [],
];
public $target = 'self';
public $text = 'Create Correlation';
public $title = 'Create Correlation';
public $text = 'Create UserVariableRelationship';
public $title = 'Create UserVariableRelationship';
public $tooltip = UserVariableRelationship::CLASS_DESCRIPTION;
public $visible = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@
use App\Buttons\QMButton;
use App\Models\UserVariableRelationship;
class ListCorrelationsButton extends QMButton {
public $accessibilityText = 'List Correlations';
public $action = 'datalab/correlations';
public $accessibilityText = 'List VariableRelationships';
public $action = 'datalab/user_variable_relationships';
public $color = UserVariableRelationship::COLOR;
public $fontAwesome = UserVariableRelationship::FONT_AWESOME;
public $id = 'datalab-correlations-button';
public $id = 'datalab-user_variable_relationships-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $link = 'datalab/correlations';
public $link = 'datalab/user_variable_relationships';
public $parameters = [
'middleware' => [
'web',
'auth',
],
'as' => 'datalab.correlations.index',
'as' => 'datalab.user_variable_relationships.index',
'uses' => 'App\\Http\\Controllers\\DataLab\\CorrelationController@index',
'controller' => 'App\\Http\\Controllers\\DataLab\\CorrelationController@index',
'namespace' => 'App\\Http\\Controllers',
'prefix' => '/datalab',
'where' => [],
];
public $target = 'self';
public $text = 'List Correlations';
public $title = 'List Correlations';
public $text = 'List VariableRelationships';
public $title = 'List VariableRelationships';
public $tooltip = UserVariableRelationship::CLASS_DESCRIPTION;
public $visible = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
class BelongsToRelationshipButton extends RelationshipButton
{
protected $foreignKeyName; // 'client_id',
protected $qualifiedForeignKeyName; // Correlation::FIELD_CLIENT_ID,
protected $qualifiedForeignKeyName; // UserVariableRelationship::FIELD_CLIENT_ID,
protected $ownerKeyName; // 'client_id',
protected $qualifiedOwnerKeyName; // Correlation::FIELD_CLIENT_ID,
protected $qualifiedOwnerKeyName; // UserVariableRelationship::FIELD_CLIENT_ID,
protected $childClass;
/**
* BelongsToRelationshipButton constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CorrelationCorrelationCausalityVotesButton extends HasManyRelationshipButt
public $fontAwesome = CorrelationCausalityVote::FONT_AWESOME;
public $id = 'correlation-causality-votes-button';
public $image = CorrelationCausalityVote::DEFAULT_IMAGE;
public $text = 'Correlation Causality Votes';
public $title = 'Correlation Causality Votes';
public $text = 'User Variable Relationship Causality Votes';
public $title = 'User Variable Relationship Causality Votes';
public $tooltip = CorrelationCausalityVote::CLASS_DESCRIPTION;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CorrelationCorrelationUsefulnessVotesButton extends HasManyRelationshipBut
public $fontAwesome = CorrelationUsefulnessVote::FONT_AWESOME;
public $id = 'correlation-usefulness-votes-button';
public $image = CorrelationUsefulnessVote::DEFAULT_IMAGE;
public $text = 'Correlation Usefulness Votes';
public $title = 'Correlation Usefulness Votes';
public $text = 'User Variable Relationship Usefulness Votes';
public $title = 'User Variable Relationship Usefulness Votes';
public $tooltip = CorrelationUsefulnessVote::CLASS_DESCRIPTION;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class CorrelationCausalityVoteCorrelationButton extends BelongsToRelationshipBut
public $fontAwesome = UserVariableRelationship::FONT_AWESOME;
public $id = 'correlation-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $text = 'Correlation';
public $title = 'Correlation';
public $text = 'UserVariableRelationship';
public $title = 'UserVariableRelationship';
public $tooltip = UserVariableRelationship::CLASS_DESCRIPTION;

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class CorrelationUsefulnessVoteCorrelationButton extends BelongsToRelationshipBu
public $fontAwesome = UserVariableRelationship::FONT_AWESOME;
public $id = 'correlation-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $text = 'Correlation';
public $title = 'Correlation';
public $text = 'UserVariableRelationship';
public $title = 'UserVariableRelationship';
public $tooltip = UserVariableRelationship::CLASS_DESCRIPTION;

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class GlobalVariableRelationshipCorrelationCausalityVotesButton extends HasManyR
public $fontAwesome = CorrelationCausalityVote::FONT_AWESOME;
public $id = 'correlation-causality-votes-button';
public $image = CorrelationCausalityVote::DEFAULT_IMAGE;
public $text = 'Correlation Causality Votes';
public $title = 'Correlation Causality Votes';
public $text = 'User Variable Relationship Causality Votes';
public $title = 'User Variable Relationship Causality Votes';
public $tooltip = CorrelationCausalityVote::CLASS_DESCRIPTION;

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class GlobalVariableRelationshipCorrelationUsefulnessVotesButton extends HasMany
public $fontAwesome = CorrelationUsefulnessVote::FONT_AWESOME;
public $id = 'correlation-usefulness-votes-button';
public $image = CorrelationUsefulnessVote::DEFAULT_IMAGE;
public $text = 'Correlation Usefulness Votes';
public $title = 'Correlation Usefulness Votes';
public $text = 'User Variable Relationship Usefulness Votes';
public $title = 'User Variable Relationship Usefulness Votes';
public $tooltip = CorrelationUsefulnessVote::CLASS_DESCRIPTION;

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GlobalVariableRelationshipCorrelationsButton extends HasManyRelationshipBu
public $relationshipType = 'Illuminate\\Database\\Eloquent\\Relations\\HasMany';
public $color = UserVariableRelationship::COLOR;
public $fontAwesome = UserVariableRelationship::FONT_AWESOME;
public $id = 'correlations-button';
public $id = 'user_variable_relationships-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $text = 'Individual User Studies';
public $title = 'Individual User Studies';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class OAClientCorrelationCausalityVotesButton extends HasManyRelationshipButton
public $fontAwesome = CorrelationCausalityVote::FONT_AWESOME;
public $id = 'correlation-causality-votes-button';
public $image = CorrelationCausalityVote::DEFAULT_IMAGE;
public $text = 'Correlation Causality Votes';
public $title = 'Correlation Causality Votes';
public $text = 'User Variable Relationship Causality Votes';
public $title = 'User Variable Relationship Causality Votes';
public $tooltip = CorrelationCausalityVote::CLASS_DESCRIPTION;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class OAClientCorrelationUsefulnessVotesButton extends HasManyRelationshipButton
public $fontAwesome = CorrelationUsefulnessVote::FONT_AWESOME;
public $id = 'correlation-usefulness-votes-button';
public $image = CorrelationUsefulnessVote::DEFAULT_IMAGE;
public $text = 'Correlation Usefulness Votes';
public $title = 'Correlation Usefulness Votes';
public $text = 'User Variable Relationship Usefulness Votes';
public $title = 'User Variable Relationship Usefulness Votes';
public $tooltip = CorrelationUsefulnessVote::CLASS_DESCRIPTION;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class OAClientCorrelationsButton extends HasManyRelationshipButton {
public $relationshipType = 'Illuminate\\Database\\Eloquent\\Relations\\HasMany';
public $color = UserVariableRelationship::COLOR;
public $fontAwesome = UserVariableRelationship::FONT_AWESOME;
public $id = 'correlations-button';
public $id = 'user_variable_relationships-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $text = 'Correlations';
public $title = 'Correlations';
public $text = 'VariableRelationships';
public $title = 'VariableRelationships';
public $tooltip = UserVariableRelationship::CLASS_DESCRIPTION;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class OAClientThirdPartyCorrelationsButton extends HasManyRelationshipButton {
public $relationshipType = 'Illuminate\\Database\\Eloquent\\Relations\\HasMany';
public $color = ThirdPartyCorrelation::COLOR;
public $fontAwesome = ThirdPartyCorrelation::FONT_AWESOME;
public $id = 'third-party-correlations-button';
public $id = 'third-party-user_variable_relationships-button';
public $image = ThirdPartyCorrelation::DEFAULT_IMAGE;
public $text = 'Third Party Correlations';
public $title = 'Third Party Correlations';
public $text = 'Third Party VariableRelationships';
public $title = 'Third Party VariableRelationships';
public $tooltip = ThirdPartyCorrelation::CLASS_DESCRIPTION;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class UnitCorrelationsWhereCauseUnitButton extends HasManyRelationshipButton {
public $relationshipType = 'Illuminate\\Database\\Eloquent\\Relations\\HasMany';
public $color = UserVariableRelationship::COLOR;
public $fontAwesome = UserVariableRelationship::FONT_AWESOME;
public $id = 'correlations-where-cause-unit-button';
public $id = 'user_variable_relationships-where-cause-unit-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $text = 'Correlations Where Cause Unit';
public $title = 'Correlations Where Cause Unit';
public $tooltip = 'Correlations where this is the Cause Unit';
public $text = 'VariableRelationships Where Cause Unit';
public $title = 'VariableRelationships Where Cause Unit';
public $tooltip = 'VariableRelationships where this is the Cause Unit';
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class UserVariableRelationshipCausalityVotesButton extends HasManyRelationshipBu
public $fontAwesome = CorrelationCausalityVote::FONT_AWESOME;
public $id = 'correlation-causality-votes-button';
public $image = CorrelationCausalityVote::DEFAULT_IMAGE;
public $text = 'Correlation Causality Votes';
public $title = 'Correlation Causality Votes';
public $text = 'User Variable Relationship Causality Votes';
public $title = 'User Variable Relationship Causality Votes';
public $tooltip = CorrelationCausalityVote::CLASS_DESCRIPTION;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class UserVariableRelationshipUsefulnessVotesButton extends HasManyRelationshipB
public $fontAwesome = CorrelationUsefulnessVote::FONT_AWESOME;
public $id = 'correlation-usefulness-votes-button';
public $image = CorrelationUsefulnessVote::DEFAULT_IMAGE;
public $text = 'Correlation Usefulness Votes';
public $title = 'Correlation Usefulness Votes';
public $text = 'User Variable Relationship Usefulness Votes';
public $title = 'User Variable Relationship Usefulness Votes';
public $tooltip = CorrelationUsefulnessVote::CLASS_DESCRIPTION;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class UserVariableRelationshipsButton extends HasManyRelationshipButton {
public $relationshipType = 'Illuminate\\Database\\Eloquent\\Relations\\HasMany';
public $color = UserVariableRelationship::COLOR;
public $fontAwesome = UserVariableRelationship::FONT_AWESOME;
public $id = 'correlations-button';
public $id = 'user_variable_relationships-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $text = 'Correlations';
public $title = 'Correlations';
public $text = 'VariableRelationships';
public $title = 'VariableRelationships';
public $tooltip = UserVariableRelationship::CLASS_DESCRIPTION;
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class UserVariableCorrelationsWhereCauseUserVariableButton extends HasManyRelati
public $relationshipType = 'Illuminate\\Database\\Eloquent\\Relations\\HasMany';
public $color = UserVariableRelationship::COLOR;
public $fontAwesome = UserVariableRelationship::FONT_AWESOME_EFFECTS;
public $id = 'correlations-where-cause-user-variable-button';
public $id = 'user_variable_relationships-where-cause-user-variable-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $text = 'Effects';
public $title = 'Effects';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class UserVariableCorrelationsWhereEffectUserVariableButton extends HasManyRelat
public $relationshipType = 'Illuminate\\Database\\Eloquent\\Relations\\HasMany';
public $color = UserVariableRelationship::COLOR;
public $fontAwesome = UserVariableRelationship::FONT_AWESOME;
public $id = 'correlations-where-effect-user-variable-button';
public $id = 'user_variable_relationships-where-effect-user-variable-button';
public $image = UserVariableRelationship::DEFAULT_IMAGE;
public $text = 'Predictors';
public $title = 'Predictors';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class VariableCorrelationCausalityVotesWhereCauseVariableButton extends HasManyR
public $fontAwesome = CorrelationCausalityVote::FONT_AWESOME;
public $id = 'correlation-causality-votes-where-cause-variable-button';
public $image = CorrelationCausalityVote::DEFAULT_IMAGE;
public $text = 'Correlation Causality Votes Where Cause Variable';
public $title = 'Correlation Causality Votes Where Cause Variable';
public $tooltip = 'Correlation Causality Votes where this is the Cause Variable';
public $text = 'User Variable Relationship Causality Votes Where Cause Variable';
public $title = 'User Variable Relationship Causality Votes Where Cause Variable';
public $tooltip = 'User Variable Relationship Causality Votes where this is the Cause Variable';
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class VariableCorrelationCausalityVotesWhereEffectVariableButton extends HasMany
public $fontAwesome = CorrelationCausalityVote::FONT_AWESOME;
public $id = 'correlation-causality-votes-where-effect-variable-button';
public $image = CorrelationCausalityVote::DEFAULT_IMAGE;
public $text = 'Correlation Causality Votes Where Effect Variable';
public $title = 'Correlation Causality Votes Where Effect Variable';
public $tooltip = 'Correlation Causality Votes where this is the Effect Variable';
public $text = 'User Variable Relationship Causality Votes Where Effect Variable';
public $title = 'User Variable Relationship Causality Votes Where Effect Variable';
public $tooltip = 'User Variable Relationship Causality Votes where this is the Effect Variable';
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class VariableCorrelationUsefulnessVotesWhereCauseVariableButton extends HasMany
public $fontAwesome = CorrelationUsefulnessVote::FONT_AWESOME;
public $id = 'correlation-usefulness-votes-where-cause-variable-button';
public $image = CorrelationUsefulnessVote::DEFAULT_IMAGE;
public $text = 'Correlation Usefulness Votes Where Cause Variable';
public $title = 'Correlation Usefulness Votes Where Cause Variable';
public $tooltip = 'Correlation Usefulness Votes where this is the Cause Variable';
public $text = 'User Variable Relationship Usefulness Votes Where Cause Variable';
public $title = 'User Variable Relationship Usefulness Votes Where Cause Variable';
public $tooltip = 'User Variable Relationship Usefulness Votes where this is the Cause Variable';
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class VariableCorrelationUsefulnessVotesWhereEffectVariableButton extends HasMan
public $fontAwesome = CorrelationUsefulnessVote::FONT_AWESOME;
public $id = 'correlation-usefulness-votes-where-effect-variable-button';
public $image = CorrelationUsefulnessVote::DEFAULT_IMAGE;
public $text = 'Correlation Usefulness Votes Where Effect Variable';
public $title = 'Correlation Usefulness Votes Where Effect Variable';
public $tooltip = 'Correlation Usefulness Votes where this is the Effect Variable';
public $text = 'User Variable Relationship Usefulness Votes Where Effect Variable';
public $title = 'User Variable Relationship Usefulness Votes Where Effect Variable';
public $tooltip = 'User Variable Relationship Usefulness Votes where this is the Effect Variable';
}
Loading

0 comments on commit 51e4390

Please sign in to comment.