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

Fix top categories and sorting not working #3025

Merged
merged 12 commits into from
Oct 31, 2022

Conversation

Jrryy
Copy link
Contributor

@Jrryy Jrryy commented Oct 24, 2022

Description

Fixes #3020
Fixed the cgtop command so that a deprecation warning stops appearing, filtering by categories shows integers under the "Market Cap Rank" column, and sorting by certain columns works as expected.

Side note: I have noticed, and confirmed in their website, that CoinGecko ignores the pagination when requesting a category of coins. That's why I've divided the code in two branches depending on whether the user requests a category or not. It's probably worth reporting this to them or asking if this is the expected behaviour.

How has this been tested?

Ran test_crypto_disc.openbb without errors. Also the following screenshots:
image
image
image

Checklist:

Others

  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.

@jmaslek
Copy link
Collaborator

jmaslek commented Oct 24, 2022

Thanks for this!

I believe this function is getting renamed in #3000 by @northern-64bit. But it doesn't look like this should raise any conflicts.

@OMEGA102781
Copy link

OMEGA102781 commented Oct 24, 2022 via email

@jmaslek
Copy link
Collaborator

jmaslek commented Oct 25, 2022

Hey @Jrryy, we merged a PR that renamed some functions. Could you rebase so that we can add this fix :)

@Jrryy
Copy link
Contributor Author

Jrryy commented Oct 25, 2022

Yep, going to rebase and fix the failing tests.

@Jrryy Jrryy force-pushed the fix-3020-cgtop-bugs branch from 64656e3 to 9f8aa1c Compare October 25, 2022 15:47
@Jrryy Jrryy changed the title Fix cgtop categories and sorting not working Fix top categories and sorting not working Oct 25, 2022
@jmaslek jmaslek added bug Fix bug enhancement Enhancement labels Oct 25, 2022
@jmaslek jmaslek merged commit a38fcd8 into OpenBB-finance:main Oct 31, 2022
hjoaquim pushed a commit to hjoaquim/OpenBBTerminal that referenced this pull request Nov 1, 2022
* Fix categories and sorting not working

* Allow sort in ascending order

* Documented the new flag

* Fixed tests

* Fix bad practises

Co-authored-by: James Maslek <[email protected]>
jmaslek added a commit that referenced this pull request Nov 1, 2022
* improved integration tests for forex

* integration test for dashboards

* added more tests to economy

* added test for forecast report

* added eedbt integration test

* added hist tests

* added eval command

* updatedeconometrics tests

* changed order

* test removing warning

* Revert "test removing warning"

This reverts commit 09ca09012156771428b2041b478296dbf2bfc780.

* adding todo

* Fix top categories and sorting not working (#3025)

* Fix categories and sorting not working

* Allow sort in ascending order

* Documented the new flag

* Fixed tests

* Fix bad practises

Co-authored-by: James Maslek <[email protected]>

* [FEAT] StatsForecast AutoETS forecasting model (#2988)

* feat: add autoets model

* feat: update autoets index

* feat: add verbose option

* feat: freq preprocessing

* feat: improve test size call

* feat: add statsforecast dep to conda env full

Co-authored-by: James Maslek <[email protected]>
Co-authored-by: martinb-bb <[email protected]>

* Improve ETF menu (#3124)

* improve etf menu

* improve docs

* fix tests

* should cover more edge cases

Co-authored-by: James Maslek <[email protected]>

* improve export (#3176)

* When renaming funcs to remove source at start, the translating keys were missing update (#3177)

* fix the en.yml key for some funcs

* fix tests

Co-authored-by: James Maslek <[email protected]>

* Adds guide for SDK/Keys (#3111)

* Adds guide for SDK/Keys

* Linter

* Applied requested changes, and improved the examples.

* Removed bullet point

Co-authored-by: Jeroen Bouma <[email protected]>

* Adds Introduction Guide for the Economy SDK Module (#3142)

* Adds Introduction Guide for the Economy SDK Module

* Changes title

Co-authored-by: Jeroen Bouma <[email protected]>

* version check for statforecast (#3227)

* Fix 3188 - UX for `Feature Engineering` functions  (#3224)

* fix depr. warning

* console printout enhancment

* improvement to sto for UX

* average true range UX

* signal UX improv.

* Fix Some Econometrics Bugs (#3210)

* Added suggestions for load

* Fixed a command

* Fixed panel

Co-authored-by: Henrique Joaquim <[email protected]>
Co-authored-by: James Maslek <[email protected]>

* Fixing 6 crypto bugs (#3228)

* fixing 6 crypto bugs

* fixing filter stuff

Co-authored-by: Colin Delahunty <[email protected]>

* Fix SDK plot colors without needing openbb.stocks.candle (#3178)

* fix SDK plot colors without needing openbb.stocks.candle

* lint

* ordering

Co-authored-by: James Maslek <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>

* Updating crypto integration tests (#3222)

* disc, ov, and base

* more integration tests and fixing previous commited ones

* some more fixes

Co-authored-by: Colin Delahunty <[email protected]>

* removing commented tests

* removing commented tests

Co-authored-by: Gerard <[email protected]>
Co-authored-by: James Maslek <[email protected]>
Co-authored-by: fede <[email protected]>
Co-authored-by: martinb-bb <[email protected]>
Co-authored-by: DidierRLopes <[email protected]>
Co-authored-by: Danglewood <[email protected]>
Co-authored-by: Jeroen Bouma <[email protected]>
Co-authored-by: Colin Delahunty <[email protected]>
Co-authored-by: James Simmons <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug enhancement Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] crypto/cgtop errors
3 participants