Skip to content

Support table view constraints#316

Merged
Tigrov merged 10 commits into
yiisoft:masterfrom
Tigrov:support_table_view_constrains
Jan 9, 2024
Merged

Support table view constraints#316
Tigrov merged 10 commits into
yiisoft:masterfrom
Tigrov:support_table_view_constrains

Conversation

@Tigrov

@Tigrov Tigrov commented Sep 13, 2023

Copy link
Copy Markdown
Member
Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Fixed issues #6

@what-the-diff

what-the-diff Bot commented Sep 13, 2023

Copy link
Copy Markdown

PR Summary

  • Improved Data Loading Methods in Schema
    Modifications have been made to loadTableIndexes, findColumns and loadTableConstraints methods in the Schema.php file to enhance how data is loaded. This was achieved by adding dimensions (left joins) and conditions, enabling much more precise and efficient data retrieving.

  • Enhanced Testing Provisions
    Added test cases in ColumnSchemaTest.php, QueryBuilderProvider.php and SchemaTest.php files. These tests will ensure data integrity by checking things like the primary key of a view, the ability to upsert data into a table view, and the correctness of view names.

  • Added 'constraintsOfView' Method
    The SchemaProvider.php file now has a new method called constraintsOfView which helps identify constraints in a given view. This serves to tighten data security and integrity by understanding the restrictions in place at the view level.

  • SQL file Update
    The pgsql.sql file was updated with new view statements and several view removal statements. This means our database is tweaked, it's more streamlined now with unnecessary views removed and new ones added.

@codecov

codecov Bot commented Sep 13, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c003f9c) 100.00% compared to head (0f8275f) 100.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##              master      #316   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       187       187           
===========================================
  Files             13        13           
  Lines            566       566           
===========================================
  Hits             566       566           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Tigrov Tigrov marked this pull request as ready for review October 1, 2023 03:24

@vjik vjik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but need add line to changelog

Comment thread tests/ColumnSchemaTest.php
@Tigrov Tigrov merged commit c4f1271 into yiisoft:master Jan 9, 2024
@Tigrov Tigrov deleted the support_table_view_constrains branch January 9, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants