Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

feat(indexer): deprecated SetOracleDataIntervalIndexer Indexer & API #749

Merged
merged 3 commits into from
Feb 3, 2022

Conversation

fuxingloh
Copy link
Contributor

@fuxingloh fuxingloh commented Feb 2, 2022

What kind of PR is this?:

/kind feature
/kind chore

What this PR does / why we need it:

Consider being part of BirthdayResearch/jellyfishsdk#580 undertaking

SetOracleDataIntervalIndexer which was introduced in #283 produces a new API available at this endpoint: /:key/feed/interval/:interval. While this provides useful information for data graphing, this API was heavily underutilized as no product integration was built for it yet.

Following the footsteps of a recent chore(database): optimization, this PR attempt to remove indexes that aren't heavily used by the DeFiChain ecosystem.

Although we are deprecating this endpoint immediately now in an effort to move fast, the end goal is to move to a more robust indexing system.

@codeclimate
Copy link

codeclimate bot commented Feb 2, 2022

Code Climate has analyzed commit 3553ce3 and detected 0 issues on this pull request.

View more on Code Climate.

@codecov
Copy link

codecov bot commented Feb 3, 2022

Codecov Report

Merging #749 (3553ce3) into main (9a1b5dc) will decrease coverage by 0.39%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #749      +/-   ##
==========================================
- Coverage   92.68%   92.28%   -0.40%     
==========================================
  Files         115      113       -2     
  Lines        2993     2904      -89     
  Branches      372      363       -9     
==========================================
- Hits         2774     2680      -94     
- Misses        210      215       +5     
  Partials        9        9              
Impacted Files Coverage Δ
packages/whale-api-client/src/api/prices.ts 100.00% <ø> (ø)
src/module.indexer/model/dftx.indexer.ts 96.49% <ø> (-0.12%) ⬇️
src/module.indexer/model/dftx/_module.ts 100.00% <ø> (ø)
src/module.model/_module.ts 100.00% <ø> (ø)
src/module.api/price.controller.ts 82.60% <20.00%> (-11.15%) ⬇️
src/module.api/_core/api.paged.response.ts 100.00% <100.00%> (ø)
src/module.model/oracle.price.aggregated.ts 86.66% <0.00%> (-13.34%) ⬇️

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 9a1b5dc...3553ce3. Read the comment docs.

@fuxingloh fuxingloh merged commit c04ff9b into main Feb 3, 2022
@fuxingloh fuxingloh deleted the fuxingloh/drop-oracle-interval-aggregate-indexer branch February 3, 2022 06:43
eli-lim pushed a commit to BirthdayResearch/jellyfishsdk that referenced this pull request Mar 28, 2022
…ellyfishSDK/whale#749)

* feat(indexer): deprecated SetOracleDataIntervalIndexer Indexer & API

* updated deprecation notice with PR url

* fix invalid import
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants