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

[backend] Works tracking fail to complete at "update processed time" (#5762) #5763

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

richard-julien
Copy link
Member

See #5762

@@ -197,11 +197,6 @@ export const createWork = async (context, user, connector, friendlyName, sourceI
return loadWorkById(context, user, workId);
};

const isWorkCompleted = async (workId) => {
const { import_processed_number: pn, import_expected_number: en } = await redisGetWork(workId);
return { isComplete: parseInt(pn, 10) === parseInt(en, 10), total: pn };
Copy link
Member

Choose a reason for hiding this comment

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

you would return also 'expected' now that was not returned before, no issue ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Expected is used by the caller of redisUpdateWorkFigures and not directly by the caller of isWorkCompleted.
I dont think its a problem.

Copy link

codecov bot commented Jan 31, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (212bd5c) 64.71% compared to head (a347836) 64.72%.
Report is 2 commits behind head on master.

Files Patch % Lines
...cti-platform/opencti-graphql/src/database/redis.ts 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5763   +/-   ##
=======================================
  Coverage   64.71%   64.72%           
=======================================
  Files         516      516           
  Lines       60893    60890    -3     
  Branches     4856     4857    +1     
=======================================
+ Hits        39409    39410    +1     
+ Misses      21484    21480    -4     

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

@SamuelHassine SamuelHassine merged commit 104108c into master Jan 31, 2024
8 checks passed
@SamuelHassine SamuelHassine deleted the issue/5762 branch January 31, 2024 15:33
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.

[backend] Works tracking fail to complete at "update processed time"
4 participants