-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add failing test for multiple uploads * feature: keep track of multiple artists in uploads * tweak: simplify money rounding for now * test: add failing tests and test csv for bandcamp upload * refactor: share csv header functionality * feature: implement bandcamp upload and detection * build: ignore data directory * feature: clean datasets on import * feature: clean null bytes and hidden tracking characters * test: test that bandcamp files are processed correctly * test: a few tests to cover the artist usage aggregation * wip: restructure page using uploaded-files-list tag * wip: style new structure * wip: sort data * wip: new class layout for artist usages * feature: feature complete #51 * test: test for multiple artists * Change titles and styling on homepage * Basic UI styling v1 * Styling for multiple artists * test: rename HTML fields * Create homepage.md * Update homepage.md Headine and Subheading added. * Update homepage.md Additional content writing * design: style tidy up * wip: tidy up upload/statement usage * test: refactor phpunit v10 * test: simplify tests for new codebase * test: full ci tooling * ci: test class dir, not src dir * ci: php 8,2 * ci: wrap php version in quotes? * ci: bump pdepend * ci: use phpmd 2.13.0 * ci: use vendored version * ci: use vendored version * ci: add deployment back in * ci: add deployment back in * content: add missing assets * tweak: client side files * build: bump deps * wip: slc1 * wip: api config * test: upload classes including cargo * test: improve phpmd and phpcs tests * test: update dummy test data * build: update dependencies * wip: cargo product matching * wip: optimise file upload fetch request for large files * feature: lazy load images from spotify * build: apply fix for domtemplate * wip: temporarily disable ci deployment * wip: search spotify by artist * fix: filter product list by user closes #93 * wip: rejig header and file-uploader component * wip: fix spotify search * feature: exit early if there's no matching artwork on spotify * tweak: format search query * tweak: update spotify api usage * tweak: update spotify api usage (album match) * tweak: improve upload process * styling * new styling * loading page with animation and sheen * wip: in memory database insertion * feature: tidy with FilterQuery * feature: set filtered after completion * build: upgrade dependencies * feature: cron script for background processing * feature: loop within php script * feature: move processing back in-line * wip: get rid of debug code * wip: fix sqlite syntax * wip: lazy load - ignore case * build: update dependencies * fix font file naming convention * design: geomanist font * design: privacy policy page container * wip: html in markdown * design: markdown styling tweaks * design: homepage * design: footer zap width * feature: TunecoreUpload * design: homepage copy and images for SLC1 launch * editorial: added contact details to homepage * tweak: delete from database as well as clear file on disk * fix: remove limit * feature: bring back delete-me section * feature: file clear/expire/extend * feature: auto purge * fix: cargo earning * design: font size and 'delete-me' formatting * design: uploads * tweak: style change for old chrome --------- Co-authored-by: Richard Birkin <[email protected]> Co-authored-by: Richard Birkin <[email protected]> Co-authored-by: richardbirkin <[email protected]> Co-authored-by: rjbirkin <[email protected]>
- Loading branch information
1 parent
c7f830e
commit e0a705c
Showing
204 changed files
with
7,159 additions
and
1,786 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
/vendor/ | ||
.phpunit.result.cache | ||
/data/ | ||
/ts.db | ||
/config.*.ini | ||
/www/ | ||
.DS_Store | ||
access-token.dat | ||
asset/font/.DS_Store | ||
asset/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
A music royalties data aggregator | ||
================================= | ||
|
||
// TODO: Very short intro to the project and brief description of the codebase. | ||
We make releasing music easier. | ||
|
||
A tool that helps artists and record labels process and analyse the complex web of payment data from vendors. | ||
We are DIY artists, label people, software developers and music consumers who are building tools to give indies superpowers in the age of big data. | ||
|
||
Giving indies superpowers in the age of big data. | ||
"Giving indies superpowers in the age of big data." | ||
|
||
Dev todo | ||
-------- | ||
|
||
Notes for Wednesday: the database speedup is immense. From 6 minutes to about 15 seconds. | ||
But there's still more to do, and ideally it should all be done within 1 second. | ||
So, here's how: | ||
|
||
- [x] When the file is uploaded, just store it in the Upload table. | ||
- [x] Introduce a new field, Upload.processedUsages | ||
- [x] In a background script, loop over all uploads that are not processed and extract their usages (then mark as processed) | ||
- [ ] Introduce another new field, Usage.processed | ||
- [ ] In another background script, loop over all usages that are unprocessed, finishing the job here. | ||
- [ ] The usage processor needs to match products and artists - rather than doing this individually in a loop, lookup the unique artist/product first, to cache the IDs (or create new ones), then it's possible to insert UsageOfProduct rows on bulk! | ||
- [ ] Then optimise further with a profiler. Ideally, a very large import should be completed before the page has chance to reload. | ||
- [ ] If a spinner is necessary, it should be put onto the three-checkbox page. It's also possible to know how many usages are left to process, so an ACTUAL progress bar is possible. | ||
|
||
Setup guide | ||
----------- | ||
|
||
// TODO: From scratch for Linux, Windows and Mac. | ||
TODO: From scratch for Linux, Windows and Mac. | ||
|
||
Running locally | ||
--------------- | ||
|
||
// TODO. | ||
TODO. | ||
|
||
Writing/running tests | ||
--------------------- | ||
|
||
// TODO. | ||
TODO. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.