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

Feature/remove constants validation #52

Closed
wants to merge 65 commits into from

Conversation

dinghino
Copy link
Owner

@dinghino dinghino commented May 3, 2021

Remove all the CONSTANT classes and related validation.

Validation will be done using components modules and manager singleton instead, so it should be completely dynamic

  • add constant values to each component module ('handlers' and 'writers')
  • remove current validation method and replace with manager's generated lists
    • (optional) Add validation functions to manager so it's more compact and friendly to use
  • pass test
  • implement new handling in cli
  • update tests to pass correctly

Finally closes #44 when merged..?

dinghino and others added 30 commits May 1, 2021 11:01
move GO BACK on top of options
move RUN SCRAPER at the top

easier navigation
dynamically create content based on registered items
refactor to use tuples instead of lists
move BACK option at the top
uses list of dicts to store handlers
api unchanged
added utility methods
refactor tests to adapt to changes
needed to update test when refactoring for manager dialects
something broke. found temporary ugly solution
all this validation should in theory go away soon
move GO BACK on top of options
move RUN SCRAPER at the top

easier navigation
dynamically create content based on registered items
refactor to use tuples instead of lists
move BACK option at the top
function has been moved inside manager so it's useless
ensure that they are in csv module
use the new manager functionalities to dynamically create most of the settings menus
improve user experience with sorting fields and defaulting to selecting current option if possible
changed default csv dialect in settings to excel, for no custom selected
dinghino and others added 27 commits May 2, 2021 16:29
the decorator registers some default components for testing
shuffle all directories around to a more proper package structure
refactor imports
add/cleanup some testing - increased coverage
component is still hugely work in progress, no need to cover it
as long as components are created the right way they are
auto added to the cli
Completed core restructuring of the project file.
Started working on implementing automated creation on cli options
components are now following request on issue, so this closes #44 
still missing reorganization of tests to follow same scheme so parallel work can be done on different sources and outputs
move the register by module directly into manager
refactor and cleanup cli to use them cleanly

functions naming is still up for discussion
update setup.py for new structure
rename app in stonks-cli since it causes me problems with calling it
bump to v0.6.0 - will publish on 0.6.x when other things are done

added automated registration functionalities to manager
restructured whole file structure
changed setup.py command to `stonks-cli`
typo in paths
concept stage, wasn't meant to be commited
@dinghino dinghino added the enhancement New feature or request label May 3, 2021
@dinghino dinghino closed this May 3, 2021
@dinghino
Copy link
Owner Author

dinghino commented May 3, 2021

aaand yet again wrong target branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reorganize components and remove validation on constants
1 participant