Taras
f940c38378
Prevent uncaught exception in download of Techdocs Azure Blob Storage publisher
...
Signed-off-by: Taras <tarasm@gmail.com >
2021-04-24 11:24:08 -04:00
github-actions[bot]
70be53c939
Version Packages
2021-04-15 15:40:08 +02:00
Dominik Henneke
d541d9fd07
Include review comments
...
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com >
2021-04-12 18:50:15 +02:00
Dominik Henneke
bc9d62f4f7
Create a new method to check the configuration of a techdocs publisher to not crash the application on errors
...
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com >
2021-04-12 18:50:14 +02:00
github-actions[bot]
718eea4f08
Version Packages
2021-03-18 12:31:44 +00:00
Fredrik Adelöw
e589d1ecca
Merge pull request #4939 from backstage/dependabot/npm_and_yarn/types/js-yaml-4.0.0
...
chore(deps-dev): bump @types/js-yaml from 3.12.5 to 4.0.0
2021-03-15 12:55:44 +01:00
Himanshu Mishra
2dd8cef6fc
docs/techdocs: Add doc string about etag in Metadata type
...
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-03-12 11:34:39 +01:00
Himanshu Mishra
a6067fe42d
techdocs: Add missing await when checking for existing docs
...
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-03-12 11:23:35 +01:00
dependabot[bot]
f7504fd789
chore(deps-dev): bump @types/js-yaml from 3.12.5 to 4.0.0
...
Bumps [@types/js-yaml](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/js-yaml ) from 3.12.5 to 4.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/js-yaml )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-12 04:20:02 +00:00
Himanshu Mishra
df905636ff
techdocs: Missing type updates in tests
...
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-03-12 01:29:04 +01:00
Himanshu Mishra
5190e8d80a
techdocs: Add etag as techdocs metadata type
...
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-03-12 00:58:41 +01:00
Fredrik Adelöw
8686eb38cf
Introduce the @backstage/errors package.
...
Encode thrown errors in the backend as a JSON payload using a facility in that package, and render helpful frontend displays of those errors.
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-03-11 14:31:21 +01:00
github-actions[bot]
0e120c5c66
Version Packages
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-03-11 13:45:44 +01:00
Fredrik Adelöw
702b837b8b
Remove all dot-folder imports everywhere
...
We aren't supposed to import from '.' or '../..' etc; point to the actual node being imported instead. I did allow e.g. '../../bigfolder' however. Going all the way to the individual file could be done too, but is a matter of taste perhaps.
Also ran Organize Imports on all the touched files :)
No changeset since there are no functional changes at all - only the imports changed
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-03-10 13:43:59 +01:00
Ben Lambert
8416da9ed4
Merge pull request #4881 from lowjoel/fix-aws-credentials-order
...
Implement proper AWS Credentials precedence
2021-03-10 08:37:33 +01:00
Himanshu Mishra
38a8734d89
Merge pull request #4744 from backstage/orkohunter/move-runDockerContainer
2021-03-09 10:47:26 +01:00
Joel Low
2ef5bc7ea1
Implement proper AWS Credentials precedence
...
This properly configures the precedence for explicit assume-role ARNs,
explicit AWS credentials (via access keys), and the default fallback for
the AWS SDK.
The general precedence of using:
1. explicitly provided credentials
2. AWS SDK config (AWS.config.credentials)
3. AWS SDK credentials provider chain (AWS.config.credentialProviders)
has been respected. This removes the need to explicitly configure
`AWS.config.credentials` in Backstage installations also.
Signed-off-by: Joel Low <joel@joelsplace.sg >
2021-03-09 16:53:15 +08:00
Himanshu Mishra
3f2a0efe01
backend-common: Use Record<string, string> for envVars in runDockerContainer
...
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-03-08 14:00:17 +01:00
r.bideau
ca4a904f6b
Add techdocs.publisher.awsS3.endpoint config option
...
Signed-off-by: r.bideau <7304827+rbideau@users.noreply.github.com >
2021-03-08 13:56:32 +01:00
Himanshu Mishra
c0c26244db
1. Use plain Record instead of Map
...
2. Call fs.realpath inside the utility function
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-03-08 12:44:11 +01:00
Himanshu Mishra
68575f3689
Update techdocs/scaffolder with new function parameters of runDockerContainer
...
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-03-06 21:27:00 +01:00
Himanshu Mishra
d78769fa26
TechDocs: Show error from Docker container when build fails
...
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-03-06 21:26:59 +01:00
Himanshu Mishra
e9b7db7b29
backend-common: Add runDockerContainer shared by Scaffolder and TechDocs
...
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-03-06 21:26:59 +01:00
Fredrik Adelöw
0b42fff222
add parseLocationReference/stringifyLocationReference
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-03-06 15:46:44 +01:00
Himanshu Mishra
ea3d406038
Merge pull request #4714 from erdoganoksuz/feature/OpenStackSwiftPublisher
2021-03-05 07:57:36 +00:00
Adam Harvey
56b21fda18
Merge pull request #4818 from adamdmharvey/refactor-techdocs-logging
...
chore(techdocs-common, techdocs-backend): Refactor TechDocs logging
2021-03-04 19:23:00 -05:00
Adam Harvey
f95804c311
Change log msgs to debug
...
Signed-off-by: Adam Harvey <adam.harvey@dxc.com >
2021-03-04 14:22:43 -05:00
Adam Harvey
82f329dda8
Clarify file type
...
Signed-off-by: Adam Harvey <adam.harvey@dxc.com >
2021-03-04 14:22:25 -05:00
Adam Harvey
bb748757da
Improve legacy error msg
...
Signed-off-by: Adam Harvey <adam.harvey@dxc.com >
2021-03-04 12:32:56 -05:00
Adam Harvey
e247d872b1
Replace domain with host in temp folder
...
Signed-off-by: Adam Harvey <adam.harvey@dxc.com >
2021-03-04 12:26:42 -05:00
github-actions[bot]
ff2ab4fade
Version Packages
2021-03-04 13:11:10 +00:00
vitorgrenzel
27a378b8e9
Update test fetchTechDocsMetadata
...
Signed-off-by: vitorgrenzel <vitorgrenzel@gmail.com >
2021-03-03 19:48:47 -03:00
vitorgrenzel
52396fbe9d
Update test techdocs_metadata.json file is not present
...
Signed-off-by: vitorgrenzel <vitorgrenzel@gmail.com >
2021-03-03 19:48:47 -03:00
vitorgrenzel
a21442b1cd
Update test techdocs_metadata.json file is not present
...
Signed-off-by: vitorgrenzel <vitorgrenzel@gmail.com >
2021-03-03 19:48:47 -03:00
vitorgrenzel
abfa160623
Update mock funcion uploadFile
...
Signed-off-by: vitorgrenzel <vitorgrenzel@gmail.com >
2021-03-03 19:48:47 -03:00
vitorgrenzel
71684c6cb4
Add tests for fetchTechDocsMetadata
...
Signed-off-by: vitorgrenzel <vitorgrenzel@gmail.com >
2021-03-03 19:48:47 -03:00
vitorgrenzel
1ad2b0ed92
Add tests for fetchTechDocsMetadata
...
Signed-off-by: vitorgrenzel <vitorgrenzel@gmail.com >
2021-03-03 19:48:47 -03:00
vitorgrenzel
b27aa7c7ac
Add tests for fetchTechDocsMetadata
...
Signed-off-by: vitorgrenzel <vitorgrenzel@gmail.com >
2021-03-03 19:48:47 -03:00
erdoganoksuz
7bf88b4f31
error name and documentation consistency.
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 12:17:06 +03:00
erdoganoksuz
aa095e469f
pull request feedbacks fix.
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 12:16:21 +03:00
gmzsenturk
a10174b56d
Documentations edited
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:47:01 +03:00
erdoganoksuz
e0bccb16a2
versions for changeset
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:46:30 +03:00
Mert Can Bilgiç
54e711826f
capp config type has changed
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:46:28 +03:00
erdoganoksuz
cebda81000
documentation added
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:46:23 +03:00
gmzsenturk
32fac33d8d
OpenStackSwift tests added to project
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:46:18 +03:00
Mert Can Bilgiç
75ec0e2358
mocked openstackswift publisher and created mocks first test
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:46:15 +03:00
erdoganoksuz
e36ef00fd0
router case added and hasDocsBeenGenerated fixed
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:46:12 +03:00
erdoganoksuz
ed3afb80bc
tests setup added
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:46:10 +03:00
erdoganoksuz
a42972e8f3
remove prop
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:46:08 +03:00
erdoganoksuz
0d3f211a24
console
...
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com >
2021-03-03 11:46:05 +03:00