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

[MT-1504] Refresh and Reload improvements #331

Merged
merged 33 commits into from
May 2, 2024
Merged

[MT-1504] Refresh and Reload improvements #331

merged 33 commits into from
May 2, 2024

Conversation

Enricoza
Copy link
Collaborator

No description provided.

…d RemotePublishSettings

Fix RemoteCommands issues:
- load url remote commands successfully after others have been previously added
- refresh remote commands on interval
- fix cache usage for remote commands
- use etag instead of if-not-modified-since
- safely extract fileName from url
- always use commandId to access different remote commands instead of a mix of commandId and fileName

Add a way for PublishSettings to be retrieved from local bundle

Fix ResourceRetriever to accept all 20x responses as correct
…hecks in ResourceRefresher

Move the should refresh entirely inside of the resource refresher
Move the logging in the delegate calls instead
Fix sessionbaseURL with double //
Add delegate call for cached/bundle settings
Fix old tests
… bundle for url remote commands

Create an internal bundle option just for tests
Make sure that when errorCooldown is nil the normal refreshInterval is used
Remove MockRemoteCommandsDiskStorage
@Enricoza Enricoza changed the base branch from main to release/2.13.0 May 2, 2024 09:25
@Enricoza Enricoza merged commit c34246c into release/2.13.0 May 2, 2024
58 checks passed
@Enricoza Enricoza deleted the mt-1504 branch May 2, 2024 09:29
Enricoza added a commit that referenced this pull request May 2, 2024
* Make remote commands accept local paths with and without extension definition

* Use constants for dle and tiq urls

* Share a ResourceRetriever and ResourceRefresher for RemoteCommands and RemotePublishSettings

Fix RemoteCommands issues:
- load url remote commands successfully after others have been previously added
- refresh remote commands on interval
- fix cache usage for remote commands
- use etag instead of if-not-modified-since
- safely extract fileName from url
- always use commandId to access different remote commands instead of a mix of commandId and fileName

Fix ResourceRetriever to accept all 20x responses as correct

* Add retry mechanism for ResourceRetriever and improve shouldRefresh checks in ResourceRefresher

Move the should refresh entirely inside of the resource refresher
Move the logging in the delegate calls instead

* Fix refresh logic with wrong conditions

Add delegate call for cached/bundle settings
Fix old tests

* Remove resource retriever forced refresh when not cached and add backoff for cooldown Interval

* Make condition clearer for when to use local bundle RemoteCommand config

* Use commandId instead of filename for remote commands cache and asset bundle for url remote commands

Create an internal bundle option just for tests

* Reorganize files

* Improve VisitorServiceRetriever urlSession and completion calls

* Simplify Resource Refresher error handling

* Improve Collect urlSession and Completion calls

* Test ResourceRetriever with a new MockURLSession

* Fix ResourceRefresher Cooldown logic and add some tests

* Add ResourceRefresher tests and create ErrorCooldown utility to help with tests

* Improve and test ErrorCooldown

Make sure that when errorCooldown is nil the normal refreshInterval is used

* Remove settings from bundle option

* Fix old remote commands manager tests

* Fix collect completion

* Fix remaining old tests for remote commands

Remove MockRemoteCommandsDiskStorage

* Add RemoteCommands tests for bundle and refreshes

* Fix TagManagement flaky tests

* Reload webview after session updates

* Add some documentation and improve isFileCached

* Fix comment spacing

* Fix inAppPurchase tests

* Improve readability of dynamicTrack and fix mock webview in tests

* Try to use M1 mac on CICD

* Fix wrong macos specification

* Reset ErrorCooldown counter on non-errors

* Make publishsettings tests more reliable

* Ignore 304 errors from ResourceRetriever in ResourceRefresher's ErrorCooldown

* Try to make Autotracking UI tests more reliable on slow CICD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants