Skip to content
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

Improve PropertyFactory Exception message #141

Conversation

FFirmenich
Copy link
Contributor

Improve Exception message to provide the name of the invalid property… type exactly how it's done already for Pages PropertyFactory

… type exactly how it's done already for Pages PropertyFactory
@mariosimao
Copy link
Owner

Thanks for the contribution :)

Out of curiosity, which property you tried to use that the library could not deal with?

@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2023

Codecov Report

Merging #141 (a798191) into main (fdf5b6d) will decrease coverage by 10.31%.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##               main     #141       +/-   ##
=============================================
- Coverage     99.37%   89.06%   -10.32%     
  Complexity      964      964               
=============================================
  Files           113      113               
  Lines          3064     3064               
=============================================
- Hits           3045     2729      -316     
- Misses           19      335      +316     
Impacted Files Coverage Δ
src/Databases/Properties/PropertyFactory.php 100.00% <100.00%> (ø)
src/Pages/Client.php 0.00% <0.00%> (-100.00%) ⬇️
src/Users/Client.php 0.00% <0.00%> (-100.00%) ⬇️
src/Blocks/Client.php 0.00% <0.00%> (-100.00%) ⬇️
src/Databases/Client.php 0.00% <0.00%> (-100.00%) ⬇️
src/Infrastructure/Http.php 0.00% <0.00%> (-100.00%) ⬇️
src/Notion.php 11.11% <0.00%> (-88.89%) ⬇️
src/Blocks/Bookmark.php 83.87% <0.00%> (-16.13%) ⬇️
src/Blocks/EquationBlock.php 84.61% <0.00%> (-15.39%) ⬇️
src/Blocks/Divider.php 85.71% <0.00%> (-14.29%) ⬇️
... and 13 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mariosimao mariosimao merged commit b0a54b3 into mariosimao:main Jan 9, 2023
@FFirmenich
Copy link
Contributor Author

@mariosimao i wanted to use "Relation" which doesn't exist as Database PropertyType yet

@FFirmenich FFirmenich deleted the feature/improve-property-factory-from-array-exception branch January 10, 2023 14:44
@mariosimao mariosimao self-assigned this Jun 13, 2023
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.

4 participants