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

New blocktype HttpExtractor (UAC-09 of #123) #134

Merged
merged 5 commits into from Feb 13, 2023

Conversation

schlingling
Copy link
Contributor

@schlingling schlingling commented Feb 12, 2023

Introduces a new blocktype HttpExtractor

Part of RFC0002 mobility-extension.

Implements following UACs of #123:

  • [ UAC-09] New blocktype HttpExtractor is implemented in std-extension.

I was not sure, how to register the new Block properly, so i will register it later.

Minor changes besides:

@schlingling schlingling changed the title added HttpExtractor New blocktype HttpExtractor (UAC-09 of #123) #125 Feb 12, 2023
@schlingling schlingling changed the title New blocktype HttpExtractor (UAC-09 of #123) #125 New blocktype HttpExtractor (UAC-09 of #123) Feb 12, 2023
@schlingling schlingling self-assigned this Feb 12, 2023
Copy link
Contributor

@rhazn rhazn left a comment

Choose a reason for hiding this comment

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

Please do not introduce new required attributes for the HTTPExtractor. Once you have removed these, this PR is fine to merge. Consider fixing the codestyle issues I raised as well though.

libs/extensions/std/lang/src/http-extractor-meta-inf.ts Outdated Show resolved Hide resolved
libs/extensions/std/exec/src/http-extractor-executor.ts Outdated Show resolved Hide resolved
Copy link
Contributor Author

@schlingling schlingling left a comment

Choose a reason for hiding this comment

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

implemented feedback

libs/extensions/std/exec/src/http-extractor-executor.ts Outdated Show resolved Hide resolved
libs/extensions/std/lang/src/http-extractor-meta-inf.ts Outdated Show resolved Hide resolved
Copy link
Contributor Author

@schlingling schlingling left a comment

Choose a reason for hiding this comment

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

implemented all requested changes

@@ -58,10 +58,10 @@ export class ArchiveInterpreterExecutor extends BlockExecutor<
// Filename without ext and dot
const fileName = path.basename(archivedObject.name, extName);
const mimeType =
inferMimeTypeFromFileExtension(extName) ||
inferMimeTypeFromString(extName) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

FromFileExtension, it's not a random string ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will shipp this via the next PR

@schlingling schlingling merged commit ead1df5 into main Feb 13, 2023
@schlingling schlingling deleted the feat-mobility-ext-uac-9 branch February 13, 2023 19:07
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants