Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Feat: Add overrides for apps without aragonPM repos#114

Merged
0xGabi merged 1 commit intomasterfrom
overrides
Jul 5, 2020
Merged

Feat: Add overrides for apps without aragonPM repos#114
0xGabi merged 1 commit intomasterfrom
overrides

Conversation

@0xGabi
Copy link
Copy Markdown
Contributor

@0xGabi 0xGabi commented Jul 5, 2020

Includes manual override of the artifact metadata for apps without an aragonPM repo:

  • Kernel
  • ACL
  • EVM Script Registry
  • Repo
  • APM Registry
  • ENS Subdomain Registrar

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 5, 2020

Codecov Report

Merging #114 into master will decrease coverage by 1.12%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #114      +/-   ##
==========================================
- Coverage   25.25%   24.12%   -1.13%     
==========================================
  Files          57       59       +2     
  Lines         986     1032      +46     
  Branches      163      167       +4     
==========================================
  Hits          249      249              
- Misses        737      783      +46     
Flag Coverage Δ
#unittests 24.12% <0.00%> (-1.13%) ⬇️
Impacted Files Coverage Δ
packages/connect-core/src/entities/App.ts 0.00% <0.00%> (ø)
packages/connect-core/src/utils/app.ts 0.00% <0.00%> (ø)
packages/connect-core/src/utils/overrides/index.ts 0.00% <0.00%> (ø)
...ges/connect-core/src/utils/overrides/interfaces.ts 0.00% <0.00%> (ø)

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 95271d1...cb341dd. Read the comment docs.

Comment on lines +81 to +92
let artifact: AragonArtifact
if (hasAppInfo(data.appId, 'apm')) {
artifact = getApmInternalAppInfo(data.appId)
} else if (hasAppInfo(data.appId, 'aragon')) {
artifact = getAragonOsInternalAppInfo(data.appId)
} else {
artifact = await resolveMetadata(
'artifact.json',
data.contentUri || undefined,
data.artifact
)
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was wondering if we should move this in a utility function? (Probably something we can do later)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, good idea!

Copy link
Copy Markdown
Contributor

@bpierre bpierre left a comment

Choose a reason for hiding this comment

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

LGTM!

@0xGabi 0xGabi merged commit 8011766 into master Jul 5, 2020
@0xGabi 0xGabi deleted the overrides branch July 5, 2020 23:32
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.

2 participants