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

Add support for custom CSS styling #1

Closed
BelieveInBunny opened this issue Jun 8, 2022 · 0 comments
Closed

Add support for custom CSS styling #1

BelieveInBunny opened this issue Jun 8, 2022 · 0 comments

Comments

@BelieveInBunny
Copy link

No description provided.

josecelano added a commit that referenced this issue Feb 6, 2024
324fac7 fix: [#453] cargo fmt --check for nigthly toolchain (Jose Celano)
935facb feat: [#453] new  console command (Jose Celano)
df3a9be feat: [#453] new console command seeder. Only scaffolding. WIP (Jose Celano)
98fa40f feat: [#453] add cargo dependencies: clap, anyhow (Jose Celano)
ac21c49 feat: [#452] move API client to production code (Jose Celano)
118d6a5 refactor: [#453] reorganize web mod (Jose Celano)
b1df4e8 refactor: [#453] reorganize console mods (Jose Celano)

Pull request description:

  It will upload random torrents to the Index. For testing purposes. It could be used to seed E2E test environments too.

  - [x] Reorganize `console` mod to include more mods.
  - [x] Move API client from testing to production.
  - [x] Create scaffolding for a new console command: `seeder`(with `clap` and `anyhow`)
  - [x] Use the API client to seed a live env with random torrents.

  The console command is:

  ```console
  cargo run --bin seeder -- --api-base-url <API_BASE_URL> --number-of-torrents <NUMBER_OF_TORRENTS> --user <USER> --password <PASSWORD> --interval <INTERVAL>
  ```

  For example:

  ```console
  cargo run --bin seeder -- --api-base-url "localhost:3001" --number-of-torrents 1000 --user admin --password 12345678 --interval 0
  ```

  That command would upload 100o random torrents to the Index using the user account `admin` with password `123456` and wait 1 second between uploads.

  Output:

  ```console
  $ cargo run --bin seeder -- --api-base-url "localhost:3001" --number-of-torrents    3 --user admin --password 12345678 --interval 5
      Finished dev [unoptimized + debuginfo] target(s) in 0.07s
       Running `target/debug/seeder --api-base-url 'localhost:3001' --number-of-torrents 3 --user admin --password 12345678 --interval 5`
  2024-02-06T17:12:23.325055202+00:00 [seeder][INFO] Trying to login with username: admin ...
  2024-02-06T17:12:23.666824220+00:00 [seeder][INFO] Logged as admin with account: admin
  2024-02-06T17:12:23.666870390+00:00 [seeder][INFO] Uploading 3 random torrents to the Torrust Index ...
  2024-02-06T17:12:23.666875190+00:00 [seeder][INFO] Uploading torrent #1 ...
  2024-02-06T17:12:23.666886180+00:00 [seeder][INFO] Uploading torrent with uuid: c6a4752a-d27c-4ba9-a367-cf41c9f22d4a ...
  2024-02-06T17:12:23.735547434+00:00 [seeder][INFO] Uploaded torrent: {"torrent_id":54,"info_hash":"7e0a8e0461bd2fd46b55c95da95721c836ae9349"}
  2024-02-06T17:12:28.735666148+00:00 [seeder][INFO] Uploading torrent #2 ...
  2024-02-06T17:12:28.735738597+00:00 [seeder][INFO] Uploading torrent with uuid: a383519c-0018-43ec-82df-10044c61d46d ...
  2024-02-06T17:12:28.793988941+00:00 [seeder][INFO] Uploaded torrent: {"torrent_id":55,"info_hash":"12f0f9edd2494d56a36c13b833aee37d1a0bb84d"}
  2024-02-06T17:12:33.794118199+00:00 [seeder][INFO] Uploading torrent #3 ...
  2024-02-06T17:12:33.794209398+00:00 [seeder][INFO] Uploading torrent with uuid: bc32812c-aab2-40b7-999e-d58c4070655c ...
  2024-02-06T17:12:33.874166798+00:00 [seeder][INFO] Uploaded torrent: {"torrent_id":56,"info_hash":"4b9f6e1b2e4ddcb25b292ba0cb8561e2daa5b243"}
  ```

ACKs for top commit:
  josecelano:
    ACK 324fac7

Tree-SHA512: c3e9d1e57c45bf720d5dbc9d000260a356d21eeb5fe6749136f60ef80c9f36abe216e9ebf935b7e342adaef01ded2b7bd6c5e66bd16ac3d0a9abbbb7d2d785ca
josecelano added a commit to josecelano/torrust-index that referenced this issue Feb 12, 2024
New format using a "target" ("TrackerStats Importer") and more info like the time spent and tracker URL.

```2024-02-12T13:32:50.123422513+00:00 [Tracker Stats Importer][INFO] Importing 2 torrents statistics from tracker udp://localhost:6969 ...
2024-02-12T13:32:50.123461943+00:00 [Tracker Stats Importer][INFO] Importing torrent torrust#1 ...
2024-02-12T13:32:50.242154360+00:00 [Tracker Stats Importer][INFO] Importing torrent torrust#2 ...
2024-02-12T13:32:50.243383523+00:00 [Tracker Stats Importer][INFO] Statistics import completed in 119.92ms
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants