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

feat: automatically generated instanceId #226

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Jul 8, 2024

https://linear.app/unleash/issue/2-2393/make-instance-id-autogenned-c

This drops the InstanceTag public property in UnleashSettings in favor of an internal automatically generated InstanceId property. Any reference of InstanceTag is now InstanceId.

File names no longer include InstanceTag and instead we're relying on gracefully handling file locks.

@nunogois nunogois requested a review from sighphyre July 8, 2024 11:43
}
};
```
The backup file name will follow this pattern: `{fileNameWithoutExtension}-{AppName}-{SdkVersion}.{extension}`.
Copy link
Member

Choose a reason for hiding this comment

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

Probably worth mentioning that we took this out and why

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me know if this is good enough or if you have a better idea: 00550c7

@sighphyre
Copy link
Member

How does this play with this:

eventConfig?.RaiseError(new ErrorEvent() { ErrorType = ErrorType.TogglesBackup, Error = ex });

If I'm reading that right this is still spitting out an error onto the error events. I think it shouldn't do that anymore WDYT?

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

I think we should change the error event but I don't think it's dangerous if you disagree so I'm gonna put an LGTM on it

@nunogois
Copy link
Member Author

nunogois commented Jul 8, 2024

How does this play with this:

eventConfig?.RaiseError(new ErrorEvent() { ErrorType = ErrorType.TogglesBackup, Error = ex });

If I'm reading that right this is still spitting out an error onto the error events. I think it shouldn't do that anymore WDYT?

Yep, addressed in 78cf8c2

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