Skip to content

Conversation

@Ayyanchira
Copy link
Member

🔹 Jira Ticket(s) if any

[* MOB-XXXX](https://iterable.atlassian.net/browse/MOB-3850)

✏️ Description

  1. InAppManager no more holds array of allowedProtocols. Its always accessed from IterableConfig.
  2. isUrlOpenAllowed is now a common utility method in IterableUtil
  3. Modified test methods to accomodate the changes

1. InAppManager no more holds array of allowedProtocols. Its always accessed from IterableConfig.
2. `isUrlOpenAllowed` is now a common utility method in IterableUtil
3. Modified test methods to accomodate the changes
@codecov
Copy link

codecov bot commented Dec 22, 2021

Codecov Report

Merging #415 (13efc07) into jay/MOB-3769-allowed-protocols (27a74d5) will decrease coverage by 0.00%.
The diff coverage is 52.63%.

❗ Current head 13efc07 differs from pull request most recent head 2bfb786. Consider uploading reports for the commit 2bfb786 to get more accurate results
Impacted file tree graph

@@                        Coverage Diff                         @@
##           jay/MOB-3769-allowed-protocols     #415      +/-   ##
==================================================================
- Coverage                           66.99%   66.98%   -0.01%     
==================================================================
  Files                                  63       63              
  Lines                                3833     3823      -10     
  Branches                              447      445       -2     
==================================================================
- Hits                                 2568     2561       -7     
+ Misses                               1003      998       -5     
- Partials                              262      264       +2     
Impacted Files Coverage Δ
.../iterable/iterableapi/IterableDeeplinkManager.java 52.38% <0.00%> (+4.49%) ⬆️
...in/java/com/iterable/iterableapi/IterableUtil.java 63.02% <28.57%> (-2.16%) ⬇️
...com/iterable/iterableapi/IterableActionRunner.java 47.22% <40.00%> (+4.04%) ⬆️
...ain/java/com/iterable/iterableapi/IterableApi.java 64.76% <100.00%> (-0.52%) ⬇️
...com/iterable/iterableapi/IterableInAppManager.java 88.09% <100.00%> (-0.54%) ⬇️
.../iterable/iterableapi/IterableActivityMonitor.java 91.80% <0.00%> (-3.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6109022...2bfb786. Read the comment docs.

@Ayyanchira Ayyanchira force-pushed the MOB-3850-Patch-for-allowedProtocols branch from 4623213 to ce2dcaf Compare December 22, 2021 22:03
1. Only place to check if the url is allowed is through the Util method which checks the allowedProtocols list from config.
2. Removed method signatures that were introduced because of this
3. Test methods update
4. Logs if the url was blocked
@Ayyanchira Ayyanchira force-pushed the MOB-3850-Patch-for-allowedProtocols branch from 13efc07 to 2bfb786 Compare December 22, 2021 22:40
Copy link
Contributor

@davidtruong davidtruong left a comment

Choose a reason for hiding this comment

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

Changes look fine per the changes we discussed in MOB-3850.

@Ayyanchira Ayyanchira merged commit 97f21a4 into jay/MOB-3769-allowed-protocols Dec 22, 2021
@Ayyanchira Ayyanchira deleted the MOB-3850-Patch-for-allowedProtocols branch December 22, 2021 22:51
Ayyanchira added a commit that referenced this pull request Dec 22, 2021
…cols

Mob 3850 patch for allowed protocols
Ayyanchira added a commit that referenced this pull request Dec 22, 2021
…cols

Mob 3850 patch for allowed protocols
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.

3 participants