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

Drop invocation reasons #1412

Merged
merged 3 commits into from Nov 22, 2023
Merged

Drop invocation reasons #1412

merged 3 commits into from Nov 22, 2023

Conversation

benedictus-dev
Copy link
Contributor

@benedictus-dev benedictus-dev commented Nov 21, 2023

Notes for the reviewer

Related issue

Invocation reasons are no longer be generated. This PR drops the table from the DB and remove all unused code in the InvocationReason module.

Fixes #1402

Review checklist

  • I have performed a self-review of my code
  • I have verified that all appropriate authorization policies have been implemented and tested
  • If needed, I have updated the changelog
  • Product has QA'd this feature

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3b12395) 86.15% compared to head (bf6b246) 86.83%.
Report is 1 commits behind head on main.

❗ Current head bf6b246 differs from pull request most recent head 094e1d6. Consider uploading reports for the commit 094e1d6 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1412      +/-   ##
==========================================
+ Coverage   86.15%   86.83%   +0.67%     
==========================================
  Files         218      216       -2     
  Lines        6457     6357     -100     
==========================================
- Hits         5563     5520      -43     
+ Misses        894      837      -57     

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

Copy link
Contributor

@jyeshe jyeshe left a comment

Choose a reason for hiding this comment

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

Good work! One thing on the migration only.

@benedictus-dev benedictus-dev requested review from taylordowns2000 and removed request for midigofrank November 21, 2023 12:18
Copy link
Member

@taylordowns2000 taylordowns2000 left a comment

Choose a reason for hiding this comment

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

hey @benedictus-dev , looking great. quick things:

  1. please update the changelog
  2. I still see both InvocationReason and InvocationReasons in here. Should those files be deleted? If not, why not?
  3. In one of your changes to the attempt_service_test, I noticed this line. Should we drop this test (and the corresponding function from the attempt service?)

This isn't an exhaustive review, but would love for you to address these things before asking for a review from Stu.

benedictus-yevu and others added 2 commits November 22, 2023 15:44
Touch up tests and remove (with their tests):

- Lightning.AttemptService
- Lightning.Workflows.Graph (replaced by Lightning.Graph)

Closes: #1412
@stuartc stuartc force-pushed the 1402-drop-invocation-reasons-from-DB branch from 24eb157 to bf6b246 Compare November 22, 2023 13:46
@stuartc stuartc merged commit 75aef8e into main Nov 22, 2023
0 of 6 checks passed
@stuartc stuartc deleted the 1402-drop-invocation-reasons-from-DB branch November 22, 2023 13:51
@stuartc stuartc removed their request for review November 22, 2023 13:51
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.

Drop invocation reasons from DB
5 participants