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

Add triggering anonymizer from endpoint #40

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

olaals
Copy link
Contributor

@olaals olaals commented Nov 19, 2024

No description provided.

@olaals olaals force-pushed the add-triggering-anonymizer-from-endpoint branch from f36c084 to 9376504 Compare November 19, 2024 10:39
public class AnonymizerService
{
private static readonly HttpClient client = new();

public async Task TriggerAnonymizerFunc(InspectionData data)
{
var json = JsonSerializer.Serialize(data);
var dto = new TriggerAnonymizerRequest(data.InspectionId, data.RawDataUri, data.AnonymizedUri);
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is dto, can we make it a longer, more descriptive name?

public class TriggerAnonymizerRequest
{
public required string InspectionId { get; set; }
public required string Name { get; set; }
Copy link
Collaborator

Choose a reason for hiding this comment

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

What will name describe here? Do we need it?

@olaals olaals force-pushed the add-triggering-anonymizer-from-endpoint branch from 9376504 to 131b133 Compare November 19, 2024 12:33
@olaals olaals force-pushed the add-triggering-anonymizer-from-endpoint branch from 131b133 to aabb5d1 Compare November 19, 2024 13:09
Copy link

🔔 Changes in database folder detected 🔔
Do these changes require adding new migrations? 🤔 In that case follow these steps.
If you are uncertain, ask a database admin on the team 😄

@olaals olaals force-pushed the add-triggering-anonymizer-from-endpoint branch from aabb5d1 to a584089 Compare November 20, 2024 07:34
@olaals olaals merged commit f1e0c91 into equinor:main Nov 20, 2024
5 checks passed
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