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

Remove the "refresh the session when 401 errors happen" #5005

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

karreiro
Copy link
Contributor

@karreiro karreiro commented Dec 2, 2024

This PR removes the refresh the session when 401 errors happen as that logic going to be restored by #5001.

@karreiro karreiro requested a review from a team as a code owner December 2, 2024 10:36
Copy link
Contributor

github-actions bot commented Dec 2, 2024

We detected some changes at packages/*/src and there are no updates in the .changeset.
If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.

Copy link
Contributor

github-actions bot commented Dec 2, 2024

Differences in type declarations

We detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:

  • Some seemingly private modules might be re-exported through public modules.
  • If the branch is behind main you might see odd diffs, rebase main into this branch.

New type declarations

packages/cli-kit/dist/cli/api/graphql/admin/generated/theme_files_upsert.d.ts
import * as Types from './types.js';
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type ThemeFilesUpsertMutationVariables = Types.Exact<{
    files: Types.OnlineStoreThemeFilesUpsertFileInput[] | Types.OnlineStoreThemeFilesUpsertFileInput;
    themeId: Types.Scalars['ID']['input'];
}>;
export type ThemeFilesUpsertMutation = {
    themeFilesUpsert?: {
        upsertedThemeFiles?: {
            filename: string;
        }[] | null;
        userErrors: {
            filename?: string | null;
            message: string;
        }[];
    } | null;
};
export declare const ThemeFilesUpsert: DocumentNode<ThemeFilesUpsertMutation, Types.Exact<{
    files: Types.OnlineStoreThemeFilesUpsertFileInput[] | Types.OnlineStoreThemeFilesUpsertFileInput;
    themeId: Types.Scalars['ID']['input'];
}>>;

Existing type declarations

packages/cli-kit/dist/public/node/themes/factories.d.ts
@@ -1,5 +1,4 @@
-import { AssetParams } from './api.js';
-import { Result, Checksum, Theme, ThemeAsset } from '@shopify/cli-kit/node/themes/types';
+import { Checksum, Theme, ThemeAsset } from '@shopify/cli-kit/node/themes/types';
 interface RemoteThemeResponse {
     id: number;
     name: string;
@@ -26,5 +25,4 @@ export declare function buildTheme(themeJson?: RemoteThemeResponse): Theme | und
 export declare function buildChecksum(asset?: RemoteAssetResponse): Checksum | undefined;
 export declare function buildThemeAsset(asset: undefined): undefined;
 export declare function buildThemeAsset(asset: RemoteAssetResponse): ThemeAsset;
-export declare function buildBulkUploadResults(bulkUploadResponse: RemoteBulkUploadResponse[], assets: AssetParams[]): Result[];
 export {};
\ No newline at end of file

Copy link
Contributor

github-actions bot commented Dec 2, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
75.28% (+3.49% 🔼)
8723/11587
🟡 Branches
70.52% (+2.34% 🔼)
4243/6017
🟡 Functions
75.03% (+3.65% 🔼)
2290/3052
🟡 Lines
75.85% (+3.61% 🔼)
8250/10877
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / available-topics.ts
100% 100% 100% 100%
🟢
... / cli-testing.ts
100% 100% 100% 100%
🟢
... / public-api-versions.ts
100% 100% 100% 100%
🟢
... / multi-cli-warning.ts
100% 88.89% 100% 100%
🟢
... / extension-to-toml.ts
88.24% 75% 100% 100%
🟢
... / utils.ts
84.21% 66.67% 100% 83.33%
🔴
... / app-watcher-process.ts
50% 100% 50% 50%
🟢
... / cli-launcher.ts
100% 50% 100% 100%
🔴
... / webhooks.ts
0% 100% 0% 0%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / loader.ts
91.88% (-1.26% 🔻)
83.16% (-0.18% 🔻)
96.19% (-0.87% 🔻)
92.62% (-1.41% 🔻)
🟢
... / extension-instance.ts
80.5% (-2.83% 🔻)
76.52% (-1.35% 🔻)
90.2% (+0.2% 🔼)
81.51% (-3.22% 🔻)
🟢
... / import-extensions.ts
100%
83.33% (-16.67% 🔻)
100% 100%
🔴
... / extension.ts
51.02% (-4.54% 🔻)
45% (-5% 🔻)
50% (-7.14% 🔻)
52.08% (-4.73% 🔻)
🟢
... / id-matching.ts
98.94% (-0.01% 🔻)
83.33% (-1.28% 🔻)
100% 100%
🟡
... / identifiers-extensions.ts
75.4% (-4.09% 🔻)
68.66% (-2.77% 🔻)
100%
76.99% (-3.96% 🔻)
🟢
... / extension.ts
85.71% (-14.29% 🔻)
0% (-100% 🔻)
75% (-25% 🔻)
85.71% (-14.29% 🔻)
🟢
... / app-watcher-esbuild.ts
93.33% (+3.01% 🔼)
90% (-10% 🔻)
90% (+5.38% 🔼)
97.5% (+4.4% 🔼)
🟢
... / file-watcher.ts
84.69% (+3.38% 🔼)
70.45% (-1.64% 🔻)
88% (+8.83% 🔼)
89.53% (+4.53% 🔼)
🟢
... / payload.ts
95.45% (-4.55% 🔻)
88.89% (-1.11% 🔻)
100% 100%
🔴
... / draftable-extension.ts
25.93% (-4.51% 🔻)
25% (+8.33% 🔼)
9.09% (-3.41% 🔻)
28% (-3.82% 🔻)
🟢
... / bundle.ts
82.35% (+1.71% 🔼)
66.67% (-7.53% 🔻)
73.33% (+6.67% 🔼)
83.67% (+2.01% 🔼)
🟢
... / useFunctionWatcher.ts
80%
62.5% (-4.17% 🔻)
63.16%
84% (+1.02% 🔼)
🔴
... / partners-client.ts
26.09% (-0.58% 🔻)
37.5% (-2.5% 🔻)
17.86% (-0.32% 🔻)
25.76% (-0.6% 🔻)
🟢
... / ConcurrentOutput.tsx
98.36% (-0.03% 🔻)
88% (-2.91% 🔻)
100% 98.33%
🟢
... / Link.tsx
100%
85.71% (-4.29% 🔻)
100% 100%
🟡
... / output.ts
77.19% (-0.39% 🔻)
75.81% (+0.42% 🔼)
63.64%
77.06% (-0.21% 🔻)
🟢
... / path.ts
79.31% (+5.98% 🔼)
65% (-7.22% 🔻)
75% (+6.25% 🔼)
80.77% (+6.7% 🔼)
🔴
... / ui.tsx
40.91% (+5.61% 🔼)
35.29% (-1.55% 🔻)
40.63% (-1.8% 🔻)
41.27% (+5.9% 🔼)
🔴
... / api.ts
55.84% (-1.39% 🔻)
43.06% (-1.23% 🔻)
59.46%
56.55% (-1.49% 🔻)

Test suite run success

1966 tests passing in 892 suites.

Report generated by 🧪jest coverage report action from f93ed1e

@karreiro karreiro changed the title Temporarily remove the "refresh the session when 401 errors happen" (it will be restored by #5001) Remove the "refresh the session when 401 errors happen" (it will be restored by #5001) Dec 2, 2024
@karreiro karreiro changed the title Remove the "refresh the session when 401 errors happen" (it will be restored by #5001) Remove the "refresh the session when 401 errors happen" Dec 2, 2024
@karreiro karreiro requested a review from catlee December 2, 2024 12:08
@karreiro karreiro merged commit 11fd136 into catlee/theme_files_put Dec 2, 2024
27 checks passed
@karreiro karreiro deleted the catlee/theme_files_put-2 branch December 2, 2024 14:44
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.

1 participant