Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[WIP] Release 0.4.0 -- Fully adding SQL #113

Merged
merged 19 commits into from
May 11, 2016
Merged

[WIP] Release 0.4.0 -- Fully adding SQL #113

merged 19 commits into from
May 11, 2016

Conversation

Ianleeclark
Copy link
Owner

@Ianleeclark Ianleeclark commented Apr 24, 2016

@Ianleeclark Ianleeclark added this to the 0.4.0 Fully adding SQL milestone Apr 24, 2016
Ian C and others added 4 commits April 24, 2016 21:18
ADD:
  - CONTRIBUTING.md Now exists and contains a thought-process behind my branching and which issues to choose.
ADD:
  - config.go:LoadConfig() Updated config paths to add `../` to look in the
    base-level directory for the config.
  - config/config_test.go Contains the unit test for config.go

REMOVE:
  - config/config.yaml Made redundant with update to config path changes.
@Ianleeclark
Copy link
Owner Author

https://github.com/go-playground/overalls

This looks like I might be able to add coverage.

* Issue #87

ADD:
  - database/schemas.go:Torrent a new structure used to represent how the
    torrent exists in the DB.
  - database/database_test.go Working on adding tests for all Database
    abstractions

CHANGE:
  - server/server.go:scrapeHandler() Or whatever its called. Removing for now.

* Issue #87

CHANGE:
  - {.travis.yml, config.yaml}: Changing the database name because `test-db`
    isn't a valid MYSQL db name.

* Update config.yaml

* Issue #87

CHANGE:
  - config/config.go Changing how LoadConfig() returns.

* Issue #87

ADD:
  - build/schema_create.sql a new file used to create a user for the local
    mysql server
@Ianleeclark
Copy link
Owner Author

#88 will allow us to remove the DB query from the whitelist checking because if it doesn't exist in Redis and we're whitelisting, we don't need to double check.

* Issue #122

ADD:
  - Dockerfile: Added a new `VOLUME` section to allow persistence from
    deployment to deployment.

* Issue #122

CHANGE:
  - Dockerfile: we now `mkdir` before attempting to use the directory. Probably
    a good idea, existence is necessary or something.
@Ianleeclark Ianleeclark changed the title [WIP] Release 0.4.0 [WIP] Release 0.4.0 -- Fully adding SQL May 6, 2016
Ian Clark and others added 11 commits May 6, 2016 21:49
* Issue #88

ADD:
  - database.go:GetWhitelistedTorrents() A new way to retrieve all of the
    whitelisted torrents.

* Issue #88: Test 2

* Issue #88 test 3

* Issue #88: teststststs

* Issue #88: more tests

* Update database_test.go

* Update database_test.go

* Update database_test.go

* Update database_test.go

* Update database.go

* Update database_test.go

* Update database_test.go

* Update database_test.go

* Update database_test.go

* Update database_test.go

* Issue #88

ADD:
  - main.go:init() Now loads whitelisted torrents into Redis
  - server/announce.go Now rejects upon invalid torrent.

* Issue #88

REMOVE:
  server/announce.go:StartedEventHandler() Removed DB verification, as if the
  torrent doesn't exist in Redis, it shouldn't be whitelisted.
ADD:
  - reaper/reaper.go:StartReapingScheduler() Now handles adding whitelisted
    torrents to the Redis tracker every minute.

REMOVE:
  - main.go:Init() No longer handles adding whitelisted torrents.
ADD:
  - We now tracker tracker-wide upload/download bytes.
  - Any file changes are to support this or issue #81
* Issue #64

ADD:
  - We now tracker tracker-wide upload/download bytes.
  - Any file changes are to support this or issue #81

* Issue #81

ADD:
  - database.go:UpdatePeerStats() Is now working and online, but it only
    filters by the user's IP. This should be updated in the future, but I'm not
    sure what else to filter by.
ADD:
  - database/database.go:ScrapeTorrentFromInfoHash new function to scrape a
    specific torrent from its info hash.
Resolve merge conflicts on origin/devel
ADD:
  - database/database.go:UpdateTorrentStats() Now updates torrent stats to +/1
    the seeders/leechers for a specific torrent.
  - server/announce_response.go:formatScrapeResponse() Now formats the scrape
    response into a dictionary.

CHANGE:
  - database/schemas.go:Torrent.{Seeders,Leechers} Are now type `int` instead
    of type `int64`
  - server/server.go Updated how we write responses to two functions and
    finished scrape responses
@Ianleeclark Ianleeclark merged commit 8df6865 into master May 11, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant