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: Event Uploader #91

Merged
merged 49 commits into from
Apr 15, 2024
Merged

feat: Event Uploader #91

merged 49 commits into from
Apr 15, 2024

Conversation

fabriziodemaria
Copy link
Member

@fabriziodemaria fabriziodemaria commented Apr 11, 2024

No description provided.

@fabriziodemaria fabriziodemaria changed the base branch from remote-event-upload to main April 11, 2024 12:14
@fabriziodemaria fabriziodemaria changed the title refactor: [WIP] Internal shared code in Common feat: [WIP] Event Uploader Apr 11, 2024
@fabriziodemaria fabriziodemaria force-pushed the http-general branch 9 times, most recently from f05136f to 94eb067 Compare April 11, 2024 14:30
@fabriziodemaria fabriziodemaria changed the title feat: [WIP] Event Uploader feat: Event Uploader Apr 11, 2024
@fabriziodemaria fabriziodemaria force-pushed the http-general branch 2 times, most recently from 4f2afc8 to e1be093 Compare April 11, 2024 16:10
}

enum StructValue: Equatable {
public enum NetworkStructValue: Equatable {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is basically a JsonObject now! Can we re-use something from Swift/Foundation and delete this completely?

@fabriziodemaria fabriziodemaria force-pushed the http-general branch 2 times, most recently from 88e689b to 5a63cb1 Compare April 15, 2024 07:24
@fabriziodemaria fabriziodemaria marked this pull request as ready for review April 15, 2024 07:29
switch result {
case .success(let successData):
guard successData.response.status == .ok else {
throw successData.response.mapStatusToError(error: successData.decodedError)
Copy link
Contributor

Choose a reason for hiding this comment

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

if the server returns 401..499 except it was 429 we should consider it a success (as not trying again and removing the events)

vahidlazio
vahidlazio previously approved these changes Apr 15, 2024
vahidlazio
vahidlazio previously approved these changes Apr 15, 2024
@fabriziodemaria fabriziodemaria merged commit b5ba3e0 into main Apr 15, 2024
3 checks passed
@fabriziodemaria fabriziodemaria deleted the http-general branch April 15, 2024 14:57
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.

None yet

4 participants