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

DUI3-126 shared files #12

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

oguzhankoral
Copy link
Member

@oguzhankoral oguzhankoral commented Jul 9, 2024

  • Account service to get account first from id otherwise from server Url.
  • Simplications on dup codes, created ReceiveInfo record as we did before with SendInfo

Corresponding PR on UI side -> specklesystems/speckle-server#2459

- And other simplications, removing dup code etc.
Copy link

codecov bot commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (9d0635c) to head (b314040).

Additional details and impacted files
@@          Coverage Diff          @@
##             dev     #12   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files        161     161           
  Lines       3155    3155           
  Branches     340     340           
=====================================
  Misses      3153    3153           
  Partials       2       2           

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

@@ -349,7 +343,7 @@ public async Task Send(string modelCardId)
var result = await unitOfWork.Service
.Execute(
mapMembers,
sendInfo,
modelCard.GetSendInfo("ArcGIS"), // POC: get host app name from settings?
Copy link
Member

Choose a reason for hiding this comment

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

okay we will need to resolve this at one point :D (just a comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, I'm fairly certain we have a ticket for this, but it was always low prio

var sendResult = await sendOperation.Service
.Execute(
revitObjects,
sendInfo,
modelCard.GetSendInfo(_revitSettings.HostSlug.NotNull()),
Copy link
Member

Choose a reason for hiding this comment

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

the pattern does seem to be there for revit?

Copy link
Member Author

Choose a reason for hiding this comment

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

partly yes, but still this HostSlug in settings depends on old kit classes which we will change it.

Copy link
Member

@didimitrie didimitrie left a comment

Choose a reason for hiding this comment

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

minor comments, feel free to merge without acting on any of them!

@@ -15,6 +15,7 @@ public static void AddConnectorUtils(this SpeckleContainerBuilder builder)
// send operation and dependencies
builder.AddSingleton<CancellationManager>();
builder.AddScoped<ReceiveOperation>();
builder.AddScoped<AccountService>();
Copy link
Member

Choose a reason for hiding this comment

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

from usage, to me it looks like this dude could be better as a singleton?

Copy link
Member

Choose a reason for hiding this comment

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

(not essential)

Copy link
Member Author

Choose a reason for hiding this comment

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

yea, doing it


namespace Speckle.Connectors.Utils.Operations;

public class AccountService
Copy link
Member

Choose a reason for hiding this comment

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

please add comment on how this class is expected to be injected around, to prevent fuckups like we had in the past when we changed registration and everything went haywire!

Copy link
Member Author

@oguzhankoral oguzhankoral Jul 9, 2024

Choose a reason for hiding this comment

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

you are god damn right. doing it

@didimitrie didimitrie enabled auto-merge (squash) July 9, 2024 21:00
@didimitrie didimitrie self-requested a review July 9, 2024 21:00
@didimitrie didimitrie merged commit 7cdf863 into dev Jul 9, 2024
6 checks passed
@didimitrie didimitrie deleted the DUI3-126-Persistent-model-cards-regardless-accounts branch July 9, 2024 21:00
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