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

config: exclude uncompressed assets #75

Merged
merged 3 commits into from
Sep 27, 2024
Merged

config: exclude uncompressed assets #75

merged 3 commits into from
Sep 27, 2024

Conversation

jfmcquade
Copy link
Contributor

Updates deployment config to exclude asset files that sit in folders with the name "uncompressed" on Google Drive. See IDEMSInternational/open-app-builder#1994 for the first use of this pattern

Copy link
Contributor

@esmeetewinkel esmeetewinkel left a comment

Choose a reason for hiding this comment

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

@jfmcquade I think your initial suggestion didn't work because the asset_filter_function was set again on another line later in the config. After my commit this does seem to work, could you sense-check?

config.ts Outdated
@@ -17,6 +17,9 @@ config.google_drive.sheets_folder_ids = [

config.google_drive.assets_folder_ids = ["1abaL1QGd33NqqLoKuo2t9fVWKmh5ouM9", "1kLl5t3o4A2ssC2iC-lT2bp4u8BZZneSE"];

// Exclude uncompressed assets
config.app_data.assets_filter_function = (fileEntry) => !fileEntry.relativePath.includes("uncompressed")
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this doesn't work because there's already a line below setting the assets_filter_function to exclude draft folders

@jfmcquade
Copy link
Contributor Author

@jfmcquade I think your initial suggestion didn't work because the asset_filter_function was set again on another line later in the config. After my commit this does seem to work, could you sense-check?

Ah, thanks for spotting my error! Yes this looks good, I can't approve because it's my PR, but looks good to merge

@esmeetewinkel esmeetewinkel merged commit 8301b00 into main Sep 27, 2024
2 checks passed
@esmeetewinkel esmeetewinkel deleted the content/1.1.67 branch September 27, 2024 15:02
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.

2 participants