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

Ability to add S3 folders / files to package #2171

Merged
merged 32 commits into from
Apr 28, 2021
Merged

Conversation

nl0
Copy link
Member

@nl0 nl0 commented Apr 15, 2021

Description

TODO

  • Unit tests
  • Automated tests (e.g. Preflight)
  • Documentation
    • Python: Run build.py for new docstrings
    • JavaScript: basic explanation and screenshot of new features
  • Changelog entry

@codecov
Copy link

codecov bot commented Apr 16, 2021

Codecov Report

Merging #2171 (b3732bf) into master (85edf0c) will decrease coverage by 1.40%.
The diff coverage is 4.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2171      +/-   ##
==========================================
- Coverage   47.96%   46.55%   -1.41%     
==========================================
  Files         441      443       +2     
  Lines       21357    22012     +655     
  Branches     2436     2654     +218     
==========================================
+ Hits        10244    10248       +4     
- Misses      10205    10854     +649     
- Partials      908      910       +2     
Flag Coverage Δ
api-python 89.85% <ø> (ø)
catalog 15.51% <4.09%> (-0.79%) ⬇️
lambda 94.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
catalog/app/components/BreadCrumbs/BreadCrumbs.js 0.00% <0.00%> (ø)
catalog/app/containers/Bucket/Dir.tsx 0.00% <0.00%> (ø)
catalog/app/containers/Bucket/Listing.tsx 0.00% <0.00%> (ø)
...talog/app/containers/Bucket/PackageCreateDialog.js 0.00% <0.00%> (ø)
...app/containers/Bucket/PackageDialog/FilesInput.tsx 0.00% <0.00%> (ø)
...p/containers/Bucket/PackageDialog/S3FilePicker.tsx 0.00% <0.00%> (ø)
...alog/app/containers/Bucket/PackageUpdateDialog.tsx 0.00% <0.00%> (ø)
catalog/app/utils/AWS/S3.js 19.56% <0.00%> (-1.72%) ⬇️
...og/app/containers/Bucket/requests/bucketListing.ts 16.36% <17.14%> (+0.36%) ⬆️
catalog/app/containers/Bucket/requests/package.ts 34.32% <26.08%> (-2.18%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85edf0c...b3732bf. Read the comment docs.

@nl0 nl0 requested a review from fiskus April 20, 2021 17:57
@nl0 nl0 marked this pull request as ready for review April 20, 2021 17:57
Copy link
Member

@fiskus fiskus left a comment

Choose a reason for hiding this comment

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

Please, ping me, when backend will be ready, so I can help you with testing

catalog/app/containers/Bucket/Listing.tsx Show resolved Hide resolved
item: Item
title?: string
className?: string
}>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe, it's better to stick with one style rule for props types: type or interface. If we use interfaces, because they are superior then types, then we can use this:

export interface CellProps extends React.PropsWithChildren<{
  item: Item
  title?: string
  className?: string
}> {}

or

export interface CellProps extends React.PropsWithChildren<{}> {
  item: Item
  title?: string
  className?: string
}

Copy link
Member Author

Choose a reason for hiding this comment

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

well, they are not 100% superior, it's just a recommendation to use interfaces when possible, but it seems to me that interface A extends SomeType<...> {} doesnt make much sense, bc it's equivalent to just SomeType<...>.
interface A extends React.PropsWithChildren<{}> { ... } looks better, but still resembles some workaround and doesnt buy as much compared to when we specify children explicitly: interface A { children?: React.ReactNode, ... } (extends React.PropsWithChildren<{}> vs children?: React.ReactNode)

catalog/app/containers/Bucket/Listing.tsx Outdated Show resolved Hide resolved
catalog/app/containers/Bucket/Listing.tsx Show resolved Hide resolved
catalog/app/containers/Bucket/Listing.tsx Outdated Show resolved Hide resolved
catalog/app/containers/Bucket/PackageUpdateDialog.tsx Outdated Show resolved Hide resolved
catalog/app/containers/Bucket/requests/package.ts Outdated Show resolved Hide resolved
catalog/app/utils/s3paths.js Show resolved Hide resolved
nl0 added 13 commits April 21, 2021 19:05
* master:
  Allow unicode characters for package routes by allowing any character (#2179)
  Additional NotFoundPage scoped to Bucket (#2175)
  Docs: fix catalog config path (#2168)
  rework pkgpush auth (#2170)
  Use AWS credentials for directory package and copy package submit (#2172)
  Document package push limitations in catalog [ci skip] (#2161)
  Preview warnings accordion (#2167)
  tweak warning text (#2169)
  Copy tweaks (#2164)
  Don't crash pkgselect for empty manifests (#2147)
  add codecov config (#2155)
@nl0 nl0 changed the title Add S3 folders / files into package Add S3 folders / files to package Apr 23, 2021
@nl0 nl0 changed the title Add S3 folders / files to package Ability to add S3 folders / files to package Apr 23, 2021
@nl0 nl0 requested a review from fiskus April 23, 2021 09:54
@nl0
Copy link
Member Author

nl0 commented Apr 23, 2021

Please, ping me, when backend will be ready, so I can help you with testing

@fiskus it is now

@sir-sigurd sir-sigurd mentioned this pull request Apr 26, 2021
2 tasks
@fiskus fiskus merged commit 0f13c38 into master Apr 28, 2021
@fiskus fiskus deleted the add-s3-files-to-package branch April 28, 2021 04:18
nl0 added a commit that referenced this pull request May 4, 2021
* master: (54 commits)
  Use stable nginx version for catalog image (#2182)
  Ability to add S3 folders / files to package (#2171)
  lambda for adding S3 data to existing package (#2180)
  use github tarball for faster installation (#2181)
  Bump py from 1.7.0 to 1.10.0 in /lambdas/es/indexer (#2176)
  Bump py from 1.8.0 to 1.10.0 in /lambdas/s3select (#2177)
  Bump py from 1.8.0 to 1.10.0 in /lambdas/thumbnail (#2178)
  Allow unicode characters for package routes by allowing any character (#2179)
  Additional NotFoundPage scoped to Bucket (#2175)
  Docs: fix catalog config path (#2168)
  rework pkgpush auth (#2170)
  Use AWS credentials for directory package and copy package submit (#2172)
  Document package push limitations in catalog [ci skip] (#2161)
  Preview warnings accordion (#2167)
  tweak warning text (#2169)
  Copy tweaks (#2164)
  Don't crash pkgselect for empty manifests (#2147)
  add codecov config (#2155)
  Simplify warning messages for package name (#2134)
  Move package API requests to one file, consolidate naming and internal API (#2154)
  ...
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.

3 participants