Commit Graph

4168 Commits

Author SHA1 Message Date
Chavithra PARANA
b8dc2ef36b Tests : update cassettes + txt + csv 2023-02-09 19:01:52 +01:00
Chavithra PARANA
b149120799 Tests : skip dcf 2023-02-09 18:31:49 +01:00
Chavithra PARANA
d14e118003 Tests : fix cassettes without timezone 2023-02-09 18:28:12 +01:00
Chavithra PARANA
ac14ef9d88 Tests : mocking yfinance tzcache 2023-02-09 17:25:19 +01:00
montezdesousa
5953be0a42 Terminal authentication + keys/settings/routines (#4015)
* import order

* pylint

* no login, go to prompt

* add logout and whoami

* clear before prompt

* black

* these are unecessary

* error

* improve login prompt message

* login does not follow the controller pattern, so will name it differently

* nop

* move logout and change to results

* change return obj

* ruff

* pyupgrade

* remove user from statics

* message

* fetch configs at start

* remove unecessary func

* unecessary dataclass

* change user vars

* change login flow

* remote logout should not be used

* simplify

* fix double exit logout bug

* wrong exception

* apply keys

* change controller

* mypy

* save if no internet

* pylint

* logout everywhere

* breaking changes: move to local/hub models

* unused import

* fix logout bug

* whoami in guest mode

* add todo

* small bug guest allowed

* limit flair length

* fix bug on user pull

* logout working

* handle no connection

* logout user when logout

* remove keys push

* split logger funcs

* commant apply configs for now

* account to session

* rename user

* clear sounds better

* breaking changes: splitting guest from logged users

* pull imports up

* delete session model

* move logout func

* add ability to save and apply keys from remote

* no sensitive keys

* add support for feature flags

* unecessary print

* allow settings from differnt modules

* change setff to static

* change way to set ff

* fix bug in applying configs

* simplify obbff application

* bug on setting configs

* allow text ff

* obbff in settings

* add upload to cfg_plot 1

* data sources + backend

* this solves circular import?

* move create_session to model

* rever logs changes, not needed for now

* sync optionally

* outline account controller interface

* don't sync when guest

* block guest on installer

* or not and

* start routines

* fix bug on ff, settings

* is installer

* implementing chavi suggestions

* fix colors on installer prompt

* Logging login (#4046)

* basic logging for the login

* removing unused import

* hacking the logs custom filter to not filter the email

* black

* cooping with the new changes

* removing redundant method

* ruff

* ruff

* mypy

* SDK login (#4051)

* sdk login

* adding to the trail map

* minor fix

* improve sdk expirience

* adapting to new changes

* add docstrings

* block guest from account

* change guest msg

* change guest messages

* add sync on/off

* display onoff

* missing paragraph

* fix glitch on logout

* add sys clear

* filtering password

* filtering the email from user

* avoid writing to multiple log files if a user logs out

* fix bug, guest allowed in installer without connection

* log user on the sdk

* split login from lauch

* add clear and change messages on account

* docstrings

* start pull cmd

* change account menu description

* Fix login bug and decouple some logic (#4056)

* fix bug, guest allowed in installer without connection

* split login from lauch

* improvements on the sdk login

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* sync fix

* change account controller description

* ruff

* add help on account cmds

* update clear prompt

* fix email not in jwt

* remove jwt from requiremnts

* pull command output

* remove character

* pull cmd when no data

* add space below whoami

* fix log filenotfound exception

* changed arg name

* delete .hist on logout

* add asteriscs to password

* pylint

* uncomment rich config

* show only diffs on pull

* black#

* warn when no changes#

* pull msg was switched

* apply diff only

* breaking?: strbool change

* reduce some code

* add timeout to hub requests

* black

* add remote logout

* success msg only if success

* remove colors in prompt

* update docstrings

* keep timeout outside funcs

* update clear

* clear and patch

* delete session

* routine upload

* move .his file to .openbb folder

* change apply configs

* refactor logout

* remove mixed portfolio changes

* fix bug in lock file

* fix bug pwidth, pheight are floats

* fix sources command & add choices

* refactor timezone setting

* userdata

* fix flair

* need to cast paths

* cast on diff

* fix flair default

* save session test

* get session

* data

* test remove

* test remove with assert

* add bad test cases

* add exception cases to unittests

* test remove cli hist file

* black

* test apply configs

* test apply with sync flag

* test create session, session model

* login tests, session model

* some tests for the hub_model

* test logout user

* black

* test clear vars, reload

* test create session

* update user-json to user

* update user class

* add user tests

* tests sdk session

* tests for hub_model

* start account controller tsts

* unused import

* tests account controller: clear, pull

* tests for session_controller

* logout success bugfix

* add integration test for account

* black

* move routine related commands to other PR

* test for the user input

* completed tests for session controller

* convert to hist to str)

* fix import errors

* ruff

* ruff tests

* fix qa

* add help to settings cmds

* ruff

* fix pull keys bug

* point to dev

* account model tests

* black

* ruff

* fix for empty feature settings

* ruff

* don't display config msg if wrong token

* general msgs

* remove print

* ruff

* fix sources not updated real time

* missing return doc

* add guest if no email

* Routine remote storage (#4143)

* add upload routine command

* remove prints

* point to local again

* add commands

* add delete

* add download command and upload 409

* list comprehension

* add download & save plus upload fixe

* add user uuid folder

* add list command

* ruff

* en.yml detail

* provide choices to delete & download

* add choices to upload

* change menu text

* starting adding unit tests

* bad english

* Update test_print_help.txt

* genearl msgs

* remove print

* add docstrings

* add unit tests to account controller

* change parser

* fix routine upload test

* add to be implemented tests hub

* add to be implemented tests local

* add total pages to title

* split list into model and view

* add docstring

* print msg if character

* add local model tests

* hub tests routines

* fix test

* point to dev and glob

* fix small bug on upload

* missing return

* log decorators missing

* black

* ruff

* change prompt display

* rewrite test

* rewrite expected

* rewrite call

* try passing git action

* change .yml everywhere

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-09 13:35:44 +00:00
James Maslek
182ea05c41 Merge pull request #4177 from OpenBB-finance/snyk-upgrade-e847c32ab63e0d888c1df84d42c8aa36
[Snyk] Upgrade tailwindcss-radix from 2.6.2 to 2.7.0
2023-02-08 15:32:48 -05:00
James Maslek
51d0f380a6 Merge branch 'develop' into snyk-upgrade-e847c32ab63e0d888c1df84d42c8aa36 2023-02-08 15:16:16 -05:00
James Maslek
90b48811d6 Merge pull request #4155 from OpenBB-finance/feature/remove-dd-docs
Fixing smaller issues and moving a few things around
2023-02-08 15:16:01 -05:00
snyk-bot
21244d50c2 fix: upgrade tailwindcss-radix from 2.6.2 to 2.7.0
Snyk has created this PR to upgrade tailwindcss-radix from 2.6.2 to 2.7.0.

See this package in npm:
https://www.npmjs.com/package/tailwindcss-radix

See this project in Snyk:
https://app.snyk.io/org/openbb-terminal-shared/project/026f18ab-2849-452c-aada-400073ca5ee2?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-02-08 17:26:43 +00:00
James Maslek
f3094ac126 Merge branch 'develop' into feature/remove-dd-docs 2023-02-08 10:24:34 -05:00
Henrique Joaquim
f2c40d02bf Adjust timezone for AV when interval < 1d (#4158)
* adjusting tz

* rewriting failing tests

* getting develop version of things

* style

* removing normalize

* tests
2023-02-08 15:19:12 +00:00
James Maslek
34dcc84942 Merge branch 'develop' into feature/remove-dd-docs 2023-02-08 09:35:05 -05:00
James Maslek
cc8b3661d7 Merge pull request #4172 from OpenBB-finance/feature/docs-api-keys-update
Update the documentation so the importance of API keys is more clear
2023-02-08 09:34:34 -05:00
James Maslek
a6a67efedf Merge branch 'develop' into feature/remove-dd-docs 2023-02-08 09:31:45 -05:00
Jeroen Bouma
37f1e91de1 Merge branch 'develop' into feature/docs-api-keys-update 2023-02-08 15:16:57 +01:00
montezdesousa
a66eeacc9a Remove legacy macro endpoints with no country parameter (#4173)
* remove endpoints

* forgot this one
2023-02-08 13:56:50 +00:00
jeroen
397a388a72 Update the documentation so the importance of API keys is more clear 2023-02-08 13:57:45 +01:00
jeroen
9ae675d94c Woops 2023-02-08 11:45:28 +01:00
jeroen
ffad92588a Fix tests 2023-02-08 11:25:19 +01:00
jeroen
072c78eacc Forget the filings source 2023-02-08 10:41:06 +01:00
jeroen
34f7b25a62 Remove mention of being able to execute a routine that doesn't exist 2023-02-08 10:12:30 +01:00
jeroen
e8049c69fc Fix index command, treasury export and overview 2023-02-08 10:10:23 +01:00
jeroen
46e7eee557 Merge branch 'develop' into feature/remove-dd-docs 2023-02-08 09:44:34 +01:00
jeroen
0cce8248c8 Update files 2023-02-08 09:42:07 +01:00
jeroen
ac87adb866 Update filings sdk path 2023-02-08 09:42:07 +01:00
jeroen
1e55dbecd0 Move filings to the correct place 2023-02-08 09:42:07 +01:00
jeroen
4bba630a80 Add back in Filings command within Disc this time 2023-02-08 09:42:07 +01:00
jeroen
2f9b775ea1 I missed a s 2023-02-08 09:42:06 +01:00
montezdesousa
93dd0bce2f Fix crypto/disc/top sort (#4167)
* fix sort choices

* fix unit tests
2023-02-08 00:43:31 +00:00
James Maslek
1e1f19ead4 Merge pull request #4149 from OpenBB-finance/feature/remove-cash
Showing `portfolio` portfolios after optimizing in `po` now works, cash comment removed from `portfolio` docs and Parameter file info added
2023-02-07 17:52:08 -05:00
James Maslek
dbc368f160 Merge branch 'develop' into feature/remove-cash 2023-02-07 16:58:58 -05:00
James Maslek
663db92e33 Merge pull request #4145 from OpenBB-finance/hotfix/fix4144
Fix portfolio optimization Ticker.info bug
2023-02-07 16:58:16 -05:00
James Maslek
7595f1dbb5 Merge branch 'develop' into hotfix/fix4144 2023-02-07 16:17:06 -05:00
James Maslek
e78bf76fda Merge pull request #4156 from andyhuynh3/ruff-remove-duplicate-select
Remove duplicate `ruff` selection of `pycodestyle` warnings (`W`)
2023-02-07 16:15:46 -05:00
James Maslek
760592692e Merge branch 'develop' into feature/remove-cash 2023-02-07 14:39:11 -05:00
James Maslek
25caa15a36 Merge branch 'develop' into ruff-remove-duplicate-select 2023-02-07 14:38:13 -05:00
James Maslek
b6bcc4adaa Merge pull request #4165 from OpenBB-finance/snyk-upgrade-36d1dd271ed62d7b6b355f56040df88f
[Snyk] Upgrade @radix-ui/react-popover from 1.0.2 to 1.0.3
2023-02-07 14:37:54 -05:00
James Maslek
a2fea9c227 Merge branch 'develop' into snyk-upgrade-36d1dd271ed62d7b6b355f56040df88f 2023-02-07 14:34:45 -05:00
James Maslek
6169c223aa Merge branch 'develop' into ruff-remove-duplicate-select 2023-02-07 14:32:59 -05:00
James Maslek
5bb0f2502d Merge pull request #4160 from OpenBB-finance/feature/remove-pyupgrade
Removed Pyupgrade From CI
2023-02-07 14:31:57 -05:00
James Maslek
49ae527a98 Merge branch 'develop' into ruff-remove-duplicate-select 2023-02-07 14:21:51 -05:00
James Maslek
48f39649c7 Merge branch 'develop' into snyk-upgrade-36d1dd271ed62d7b6b355f56040df88f 2023-02-07 14:21:08 -05:00
James Maslek
98fcf18048 Merge branch 'develop' into hotfix/fix4144 2023-02-07 14:10:27 -05:00
Colin Delahunty
48b8df4763 Merge branch 'develop' into feature/remove-pyupgrade 2023-02-07 14:07:24 -05:00
James Maslek
826522b257 Merge pull request #4163 from OpenBB-finance/hotfix/fix-4040
Removing timezone on export xlsx
2023-02-07 14:06:31 -05:00
hjoaquim
b2812f0193 fix tests and fix introduced bug 2023-02-07 17:56:08 +00:00
snyk-bot
24aec0c917 fix: upgrade @radix-ui/react-popover from 1.0.2 to 1.0.3
Snyk has created this PR to upgrade @radix-ui/react-popover from 1.0.2 to 1.0.3.

See this package in npm:
https://www.npmjs.com/package/@radix-ui/react-popover

See this project in Snyk:
https://app.snyk.io/org/openbb-terminal-shared/project/026f18ab-2849-452c-aada-400073ca5ee2?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-02-07 17:44:18 +00:00
colin99d
b49e7d249d Added fixes 2023-02-07 11:30:39 -05:00
hjoaquim
b4d1d3fdc6 adding tests 2023-02-07 16:24:47 +00:00
hjoaquim
4af2408839 removing timezone on expor xlsx 2023-02-07 15:52:25 +00:00