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

Devrel 1067 import assets and folders #10

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

JiriLojda
Copy link
Member

Motivation

Which issue does this fix? Fixes #issue number

If no issue exists, what is the fix or new feature? Were there any reasons to fix/implement things that are not obvious?

Checklist

  • Code follows coding conventions held in this repo
  • Automated tests have been added
  • Tests are passing
  • Docs have been updated (if applicable)
  • Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test

If manual testing is required, what are the steps?

@JiriLojda JiriLojda requested a review from a team as a code owner December 7, 2023 13:24
@JiriLojda
Copy link
Member Author

This builds on the taxonomies branch and should be merged after it.

@JiriLojda JiriLojda force-pushed the DEVREL-1067_import_assets_and_folders branch from f6698f6 to 17cf20d Compare December 8, 2023 07:05

export const assetsExportEntity: EntityDefinition<ReadonlyArray<AssetContracts.IAssetModelContract>> = {
const assetsBinariesFolderName = "assets";
const createFilePrefix = (asset: AssetContracts.IAssetModelContract) => `${asset.id}-`;
Copy link
Contributor

Choose a reason for hiding this comment

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

why this is not createFileName and do the whole name? :D

Copy link
Member Author

Choose a reason for hiding this comment

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

Because I thought that I would need the length of the prefix to strip it when importing, but it turns out I can get the name from the asset entity itself so this is not needed and therefore, I can make it createFileName instead. 😄

@JiriLojda JiriLojda force-pushed the DEVREL-1067_import_assets_and_folders branch from 8c7d008 to 63a830d Compare December 11, 2023 10:16
@IvanKiral IvanKiral merged commit 458779f into main Dec 11, 2023
1 check passed
@IvanKiral IvanKiral deleted the DEVREL-1067_import_assets_and_folders branch December 11, 2023 10:22
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