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

DiscoDOS 3.0 - Sales, Import, Collection, Massive Refactor #22

Merged
merged 220 commits into from
Dec 30, 2024
Merged

Conversation

JOJ0
Copy link
Owner

@JOJ0 JOJ0 commented Dec 14, 2024

Too many details. Put efforts into release notes when done.

JOJ0 added 30 commits December 14, 2024 12:07
- The sold field will save a date when a record was sold on Discogs (or
  elsewhere?).
- Add it as the schema version 3
- Also fix format of sql_upgrades dict - indentations and so on
defaulting to d_artist, discogs_title.
- Basically a start to replace `dsc search`
- but most of all a way fo finally create filtered lists of releases
- Super simple query language: field=value
- If field= is missing, asssume title=
- Simple tabulate table layout
- Fixme: All releases is still old "All releases search results table"
`dsc import` is now `dsc import details [-u/-z/...]`, which gives the
freedom to further migrate to single `dsc import something` command or
leave it as is and only do _really_ new commands as `dsc import ...`
- dsc import release ID -> Import a single release to DiscoBASE. When
  used with -a, also to Discogs online collection.
- dsc import details -> Enrich with --tracks and --brainz stuff, as we
  had it in the import command before.
- Todo: Split out "initial/basic" minimal but whole collection import
  into separate command.
Add `dsc import basic`, rename other import command defs and improve
help in a couple of places.
including removal and stating [deprecated] to AcousticBrainz related
things.
and remove unused Sold column for now. Leave a commented out debug print
in ´import sales` command.
- Package ctrl
- Split into collection, mix, common
- Hide non-relevant via __ALL__
- Add some missing docstrings
- Sort imports
Patterns: TypeControlCommon, TypeControlCommandline
This one is huge and hopefully without much bugs...
and some linting in Config class
leaving a lot of unused imports and commented out stuff for reference
purposes. Clean up later!
JOJ0 added 20 commits December 28, 2024 22:47
with actual (now unused) db field.
also required changes in fetchers and getters.

- link_to now supports return plain markdown string formatted links,
  which can be rendered by Textual and Rich.
- get_listing/fetch_listing has a tui_view mode.
- Split purpose of panels: left sales, right release/video
The --all or --extra option enables a view that is "not combined" and
displays extra-rows for each item, no matter if it's in a collection
item or a sales item.
Also:
- Fix bug Sold -> sold
- Save listing ID in coll_d_sales_listing_id on first found collection
  instance
Set coll_orophaned flag in collection table, when d_coll_instance_id's
are not in the Discogs collection anymore.
- Postpone working on this later on.
- dsc ls view is just more self-explanatory this way.
- "magic" setting collection fields via sales import is kept!!!
  which potentially outputs log messages that might sound confusing to a
  user... Live with that for now and move on with v3.0 release.
Ensure it's a number, we can't rely on what type is in config.yaml.
- Comment out functionalities to keep an obvious reference.
- Comment out help output suggesting manual sold toggle.
- Remove outdated toggle_sold.. method, was unused since a long time.
- Fix some behaviour in key_value_search UNION SELECT.
@JOJ0 JOJ0 force-pushed the sell branch 6 times, most recently from 48a399a to b055903 Compare December 30, 2024 22:29
@JOJ0 JOJ0 merged commit e537d1e into master Dec 30, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant