Skip to content

Commit

Permalink
chore: [IOPID-1743] Change CDN urls (#5719)
Browse files Browse the repository at this point in the history
> [!Warning]
> This PR depends on
pagopa/io-services-metadata#779 and
pagopa/io-dev-api-server#371

## Short description
Change CDN urls from assets.cdn.io.italia.it to assets.cdn.io.pagopa.it
for all occurrence

## How to test
Verify that each link works identically to the as-is

Co-authored-by: Fabio Bombardi <[email protected]>
  • Loading branch information
Ladirico and shadowsheep1 authored May 2, 2024
1 parent dece582 commit 110d548
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions scripts/check_urls/check_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
SLACK_CHANNEL = "#io_dev_app_status"

# a list of remote uris consumed by the app for content presentation
remote_content_uri = ["https://assets.cdn.io.italia.it/bonus/bonus_available_v2.json",
"https://assets.cdn.io.italia.it/contextualhelp/data.json",
"https://assets.cdn.io.italia.it/status/backend.json"]
remote_content_uri = ["https://assets.cdn.io.pagopa.it/bonus/bonus_available_v2.json",
"https://assets.cdn.io.pagopa.it/contextualhelp/data.json",
"https://assets.cdn.io.pagopa.it/status/backend.json"]


class IOUrl(object):
Expand Down
2 changes: 1 addition & 1 deletion ts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Config from "react-native-config";

// default repository for fetching app content (e.g. services metadata)
const DEFAULT_CONTENT_REPO_URL =
"https://assets.cdn.io.italia.it" as NonEmptyString;
"https://assets.cdn.io.pagopa.it" as NonEmptyString;

// default timeout of fetch (in ms)
const DEFAULT_FETCH_TIMEOUT_MS = 8000;
Expand Down
4 changes: 2 additions & 2 deletions ts/features/design-system/core/DSListItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const DSListItems = () => {
<BankPreviewItem
bank={{
abi: "03069",
logoUrl: "https://assets.cdn.io.italia.it/logos/abi/03069.png",
logoUrl: "https://assets.cdn.io.pagopa.it/logos/abi/03069.png",
name: "Intesa Sanpaolo"
}}
onPress={() => alert("Action triggered")}
Expand Down Expand Up @@ -673,7 +673,7 @@ const renderListItemHeader = () => (
/* LIST ITEM TRANSACTION */

/* Mock assets */
const cdnPath = "https://assets.cdn.io.italia.it/logos/organizations/";
const cdnPath = "https://assets.cdn.io.pagopa.it/logos/organizations/";
const organizationLogoURI = {
imageSource: `${cdnPath}82003830161.png`,
name: "Comune di Milano"
Expand Down
2 changes: 1 addition & 1 deletion ts/features/design-system/core/DSLogos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const DSLogos = () => {
);
};

const cdnPath = "https://assets.cdn.io.italia.it/logos/organizations/";
const cdnPath = "https://assets.cdn.io.pagopa.it/logos/organizations/";

const organizationsURIs = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ exports[`MessageDetailsHeader component should match the snapshot with default p
onError={[Function]}
source={
Object {
"uri": "https://assets.cdn.io.italia.it/logos/services/service_one.png",
"uri": "https://assets.cdn.io.pagopa.it/logos/services/service_one.png",
}
}
style={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ exports[`MessageDetailsScreen should match the snapshot when everything went fin
onError={[Function]}
source={
Object {
"uri": "https://assets.cdn.io.italia.it/logos/services/service_one.png",
"uri": "https://assets.cdn.io.pagopa.it/logos/services/service_one.png",
}
}
style={
Expand Down

0 comments on commit 110d548

Please sign in to comment.