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: default values for version & always use api-based simulation runs #83

Merged
merged 3 commits into from
Dec 18, 2023

Conversation

abdullah-cognite
Copy link
Collaborator

The API was giving syntactical request errors, with null values.

@abdullah-cognite abdullah-cognite requested a review from a team as a code owner December 15, 2023 23:17
Copy link
Collaborator

@polomani polomani left a comment

Choose a reason for hiding this comment

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

LGTM,
no new release?

@polomani polomani changed the title fix: setting default values for version fix: setting default values for version & always use api-besed simulation runs Dec 18, 2023
@polomani polomani changed the title fix: setting default values for version & always use api-besed simulation runs fix: default values for version & always use api-besed simulation runs Dec 18, 2023
@polomani polomani changed the title fix: default values for version & always use api-besed simulation runs fix: default values for version & always use api-based simulation runs Dec 18, 2023
@polomani
Copy link
Collaborator

Pushed a fix for the current tests.
It seems like the simulation runs API is not enabled by default in the heartbeat and that breaks the tests logic

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Merging #83 (cd353d0) into main (5c06fe1) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #83      +/-   ##
==========================================
- Coverage   71.91%   71.78%   -0.13%     
==========================================
  Files          28       28              
  Lines        3884     3884              
  Branches      445      446       +1     
==========================================
- Hits         2793     2788       -5     
- Misses        895      898       +3     
- Partials      196      198       +2     
Files Coverage Δ
Cognite.Simulator.Utils/ConnectorBase.cs 55.44% <100.00%> (-1.04%) ⬇️

... and 1 file with indirect coverage changes

@polomani polomani merged commit 6e7dd6d into main Dec 18, 2023
3 checks passed
@polomani polomani deleted the abdullah-cognite-patch-3 branch December 18, 2023 14:48
@@ -162,7 +162,7 @@ public virtual bool ShouldLicenseCheck()
/// <returns></returns>
public virtual bool ApiEnabled()
{
return _config.UseSimulatorsApi;
return true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

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.

2 participants