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

fix: Handle missing decorator for model #364

Merged
merged 1 commit into from
May 11, 2023

Conversation

tachyonicbytes
Copy link
Contributor

@tachyonicbytes tachyonicbytes commented May 11, 2023

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Solves #343. Return a more descriptive error message when the @TigrisSearchIndex decorator is not set.

Related Tickets & Documents

Added/updated tests?

  • Yes
  • No, and this is why: please replace this line with details on why tests
    have not been included
  • I need help with writing tests

Is this change backwards compatible?

  • Yes
  • No, and this is why: please replace this line with details on why?

Does it require updates to Tigris docs?

  • Yes, and here is the link: please create an issue in tigris-docs repo
    and replace this text as tigrisdata/tigris-docs#123
  • No

Checklist

  • npm run build - builds successfully
  • npm run test - tests passing
  • npm run lint - no lint errors

[optional] Are there any post deployment tasks we need to perform?

/claim #343

@reviewpad
Copy link

reviewpad bot commented May 11, 2023

Thank you @tachyonicbytes for this first contribution!

@reviewpad reviewpad bot added the small Pull request is small label May 11, 2023
@reviewpad
Copy link

reviewpad bot commented May 11, 2023

Reviewpad Report

‼️ Errors

@codecov
Copy link

codecov bot commented May 11, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02 🎉

Comparison is base (9d845b4) 90.24% compared to head (9a8b5a3) 90.26%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #364      +/-   ##
==========================================
+ Coverage   90.24%   90.26%   +0.02%     
==========================================
  Files          29       29              
  Lines        5595     5608      +13     
  Branches      657      661       +4     
==========================================
+ Hits         5049     5062      +13     
  Misses        545      545              
  Partials        1        1              
Impacted Files Coverage Δ
src/schema/decorated-schema-processor.ts 100.00% <100.00%> (ø)
src/search/search.ts 97.79% <100.00%> (+0.17%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

adilansari
adilansari previously approved these changes May 11, 2023
@adilansari adilansari dismissed their stale review May 11, 2023 09:24

Can you please fix the PR title. (Suffixing it with "fix:" should be enough)

@adilansari
Copy link
Collaborator

@tachyonicbytes
Copy link
Contributor Author

Sure

@tachyonicbytes tachyonicbytes changed the title #343 Handle missing decorator for model Handle missing decorator for model fix:343 May 11, 2023
@tachyonicbytes tachyonicbytes changed the title Handle missing decorator for model fix:343 fix: Handle missing decorator for model May 11, 2023
@adilansari adilansari merged commit a5cb376 into tigrisdata-archive:main May 11, 2023
@github-actions
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released small Pull request is small
Projects
None yet
2 participants