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

Release Version 3.0.0-alpha.12 #715

Merged
merged 427 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
427 commits
Select commit Hold shift + click to select a range
7390616
refactor: [#301] add independent field root_hash in DB for BEP-30 tor…
josecelano Mar 5, 2024
a149f21
Merge torrust/torrust-index#516: Refactor BEP 30 implmentation
josecelano Mar 5, 2024
601c358
feat: [#294] add canonical info-hash group top torrent details API re…
josecelano Mar 5, 2024
3c719b1
chore: remove deprecated comment
josecelano Mar 5, 2024
2abb62a
chore: reset log level to info for developmentWq
josecelano Mar 5, 2024
61ce771
Merge torrust/torrust-index#518: Feature: inlude the canonical info h…
josecelano Mar 5, 2024
d500634
refactor: [#290] specific error for suplidatetorrent with a original …
josecelano Mar 5, 2024
414d468
refactor: [#290] return 4009 intead of 400 trying to upload duplicate…
josecelano Mar 5, 2024
f5cfc33
Merge torrust/torrust-index#519: Refactor error handling for torrent …
josecelano Mar 5, 2024
a7f43dc
refactor: rename fields in upload torrent response
josecelano Mar 6, 2024
0cc2663
Merge torrust/torrust-index-backend#522: Refactor: rename fields in u…
josecelano Mar 6, 2024
bd935b3
fix: [#526] DB migration for SQLite. Backup secondary tables
josecelano Mar 8, 2024
094ab8a
fix: linter errors
josecelano Mar 8, 2024
d535f79
Merge torrust/torrust-index-backend#527: Fix DB migration for SQLite.…
josecelano Mar 8, 2024
0df72de
chore(deps): bump clap from 4.5.1 to 4.5.2
mario-nt Mar 12, 2024
7183953
chore: bump http from 1.0.0 to 1.1.0
mario-nt Mar 12, 2024
7148cf1
chore: bump indexmap from 2.2.3 to 2.2.5
mario-nt Mar 12, 2024
d7e3287
chore: bump log from 0.4.20 to 0.4.21
mario-nt Mar 12, 2024
67f82b0
chore: bump which from 5.0.0 to 6.0.0
mario-nt Mar 12, 2024
1769bf1
Merge torrust/torrust-index#529: Update dependabot dependencies
josecelano Mar 13, 2024
feffd09
feat: [#469] add update datetime for tracker stasts importation
josecelano Mar 12, 2024
16cbea8
feat: [#469] import torrent statistics in batches
josecelano Mar 12, 2024
af7150b
feat: [#469] import torrent stats using multiple torrents tracker API…
josecelano Mar 13, 2024
1368045
Merge torrust/torrust-index#530: Improve tracker statistics importation
josecelano Mar 13, 2024
6e6f4f7
chore: bump mio from 0.8.10 to 0.8.11
mario-nt Mar 13, 2024
a011158
chore: bump chrono from 0.4.34 to 0.4.35
mario-nt Mar 13, 2024
c7ada2e
chore: bump reqwest from 0.11.24 to 0.11.26
mario-nt Mar 13, 2024
2b6654f
chore: bump sqlx from 0.7.3 to 0.7.4
mario-nt Mar 13, 2024
dcb0f59
chore: bump anyhow from 1.0.80 to 1.0.81
mario-nt Mar 13, 2024
4167b86
chore: bump thiserror from 1.0.57 to 1.0.58
mario-nt Mar 14, 2024
d83f8c6
refactor: deprecated function updated and unused import deleted
mario-nt Mar 15, 2024
3cd447c
Merge torrust/torrust-index#537: Update dependencies
josecelano Mar 18, 2024
3321418
chore: update deps
mario-nt Apr 1, 2024
4f84675
Merge torrust/torrust-index#552: chore: update deps
josecelano Apr 2, 2024
09b030d
build: [#556] fix project not building due to unused code
mario-nt Apr 8, 2024
3b329ff
Merge torrust/torrust-index#557: Fix project not building due to unus…
josecelano Apr 9, 2024
b2c2ce7
feat: increase the tracker stast importer exec interval
josecelano Apr 24, 2024
98c798e
Merge torrust/torrust-index#566: Increase the tracker stats importer …
josecelano Apr 24, 2024
a6d3b0d
chore(deps): udpate dependencies
josecelano Apr 24, 2024
ce7de0a
Merge torrust/torrust-index#568: Udpate dependencies
josecelano May 2, 2024
470bfb2
refactor: [#576] rename tracker env vars
josecelano May 14, 2024
cf2c80e
Merge torrust/torrust-index#577: Rename tracker env vars
josecelano May 14, 2024
0335134
chore(deps): update dependencies
josecelano May 14, 2024
5f760cf
Merge torrust/torrust-index#578: Update dependencies
josecelano May 14, 2024
ae06170
fix: errors in scripts
josecelano May 14, 2024
7926c91
Merge torrust/torrust-index#579: Fix errors in scripts
josecelano May 14, 2024
bcebcab
chore: format Cargo.toml
josecelano May 15, 2024
b948573
chore(deps): [#426] add cargo dependencies to use a custom axum serve…
josecelano May 15, 2024
e29eb01
feat: use custom axum-server wrapper with timeouts
josecelano May 15, 2024
5d82968
chore(deps): add cargo dependencies to parse TSL config
josecelano May 15, 2024
969ffff
feat: [#426] add TSL info to the [net] section in the config toml file
josecelano May 15, 2024
284d235
feat: [#426] add TSL support
josecelano May 15, 2024
1afe234
feat: [#426] disable TimeoutAccceptor when TSL is enabled
josecelano May 16, 2024
b2d864a
Merge torrust/torrust-index#584: TSL support
josecelano May 16, 2024
be3ab62
test: [#581] add some tests to configuration before refactoring
josecelano May 17, 2024
8dd5c86
Merge torrust/torrust-index#588: Add some tests to configuration befo…
josecelano May 17, 2024
d7d6d88
chore: [#589] clean unused configuration code
josecelano May 17, 2024
6c98e2b
refactor: [#589] versioning for configuration
josecelano May 17, 2024
8675d6b
docs: [#589] add todo for TrackerMode
josecelano May 17, 2024
c9b1d5a
Merge torrust/torrust-index#590: Configuration overhaul: clean and re…
josecelano May 17, 2024
07a3fb6
reafctor: reaname TorrustIndex to Settings
josecelano May 17, 2024
1a28309
refactor: [#581] remove unused code
josecelano May 17, 2024
790e1ec
refactor: [#581] rename TorrustIndex to Settings
josecelano May 17, 2024
8d3c8cb
refactor: [#581] move semantic validation
josecelano May 20, 2024
ccb2fef
chore(deps): add cargo dep figment
josecelano May 20, 2024
018dfc3
refactor: [#581] migration to Figment
josecelano May 20, 2024
6ea859b
chore(deps): [#581] remove unused dep config
josecelano May 20, 2024
757751f
fix: [#581] broken tests using relative paths for fixtures
josecelano May 21, 2024
66de695
test: show error when test env is not running
josecelano May 21, 2024
f34c998
Merge torrust/torrust-index#592: Configuration overhaul: migrate to F…
josecelano May 21, 2024
7a05b8d
chore(deps): update dependencies
josecelano May 21, 2024
9290cbb
Merge torrust/torrust-index#597: Update dependencies
josecelano May 21, 2024
fc1528d
feat: [#596] rename common E2E env vars
josecelano May 22, 2024
b8d0f98
refactor: [#596] merge E2E and prod common env var constants
josecelano May 22, 2024
5910fda
refactor: [#596] move env var constants to config mod
josecelano May 22, 2024
97e3634
refactor: [#596] rename env vars
josecelano May 22, 2024
1d8d405
Merge torrust/torrust-index#598: Configuration overhaul: rename env vars
josecelano May 22, 2024
e0d56a4
fix: [#601] linting errors
josecelano May 23, 2024
f83a5f7
Merge torrust/torrust-index#602: Fix new linting errors
josecelano May 23, 2024
c7c9225
refactor: [#599] extract types for torrust_index::config::v1::auth::Auth
josecelano May 22, 2024
28617b6
refactor: [#599] extract types for torrust_index::config::v1::databas…
josecelano May 22, 2024
748f357
chore(deps): enable serialization for lettre
josecelano May 22, 2024
7edbf7c
refactor: [#599] extract types for config::v1::mail::Mail
josecelano May 22, 2024
c422e52
chore(deps): [#599] enable serialization for URls
josecelano May 23, 2024
ab4717d
refactor: [#599] extract types for config::v1::net::Network
josecelano May 23, 2024
b1d5267
refactor: [#599] use URL type for connect_url in database config
josecelano May 23, 2024
8e53982
refactor: [#599] extract types for config::v1::tracker::Tracker
josecelano May 23, 2024
ec1d39a
refactor: [#599] extract types for config::v1::Settings
josecelano May 24, 2024
a1b5350
Merge torrust/torrust-index#600: Configuration overhaul: replace prim…
josecelano May 24, 2024
56a8c08
feat: [#603] add default values to configration
josecelano May 24, 2024
5725d7d
refactor: [#603] remove default values from config toml templates
josecelano May 24, 2024
69dd3d3
Merge torrust/torrust-index#604: Configuration overhaul: define defau…
josecelano May 24, 2024
76a1837
feat: [#605] remove deprecated env vars
josecelano May 27, 2024
0d2a8c1
Merge torrust/torrust-index#606: Remove deprecated env vars
josecelano May 27, 2024
b66e65c
chore: update dependencies
mario-nt May 27, 2024
622d4ca
Merge torrust/torrust-index#609: update dependencies
josecelano May 28, 2024
716a475
chore(deps): update dependencies
josecelano Jun 3, 2024
6d4a955
Merge torrust/torrust-index-backend#617: Update dependencies
josecelano Jun 3, 2024
a2ce990
feat: [#448] added mockall dependency
mario-nt May 29, 2024
b1d5536
feat: [#448] new user repository trait
mario-nt May 31, 2024
9ebd7b5
feat: [#448] new authorization service
mario-nt May 31, 2024
478e234
feat: [#448] new authorization service implemented in the other services
mario-nt Jun 3, 2024
3c4522f
Merge torrust/torrust-index-backend#614: 448 move authorization logic…
josecelano Jun 4, 2024
df848de
feat: [#618] scaffolding for changing pass endpoint
josecelano Jun 3, 2024
44030f8
feat: [#618] allow users to change the password
josecelano Jun 3, 2024
a4de33a
test: [#618] add tests for changing the user's password
josecelano Jun 4, 2024
659fd92
refactor: [#618] extract duplicate code
josecelano Jun 4, 2024
95e5019
feat: [#618] check current password before changing it
josecelano Jun 4, 2024
97b7c54
Merge torrust/torrust-index-backend#619: New API endpoint to change t…
josecelano Jun 5, 2024
213fcd3
chore(deps): [#621] add cargo dependency: tracing-subscriber
josecelano Jun 7, 2024
f6bace6
feat: move loggin from log to tracing crate
josecelano Jun 7, 2024
ea28777
Merge torrust/torrust-index#623: Move from `log` to `tracing` crate
josecelano Jun 10, 2024
0e2b5fd
chore(deps): update dependencies
josecelano Jun 10, 2024
59fb3ab
Merge torrust/torrust-index#625: Update dependencies
josecelano Jun 10, 2024
96269cd
test: [#628] add failing test for bug. Duplicate slash in announce URL
josecelano Jun 11, 2024
564ef13
fix: [#628] bug, duplicate slash in tracker announce URL
josecelano Jun 11, 2024
f0a5006
fix: [#628] rename config files for MySQL E2E test env too
josecelano Jun 11, 2024
a3e162c
refactor: simplify config files removing default values
josecelano Jun 11, 2024
784ac54
fix comment
josecelano Jun 11, 2024
32542e9
Merge torrust/torrust-index#630: Fix bug: duplicate slash in torrent …
josecelano Jun 11, 2024
eb987e9
feat!: [#591] config v2, tracker mode from tracker
josecelano Jun 12, 2024
bb75303
feat!: [#591] lowercase for auth::enail_on_signup emnum variants
josecelano Jun 12, 2024
82fc32c
feat!: [#591] rename enum variant EmailOnSignup::None to Ignored
josecelano Jun 12, 2024
50ebb9a
feat!: [#591] move log_level into a new logging section in config
josecelano Jun 12, 2024
cd8248a
feat!: [#591] extract new type for password constrains in configuration
josecelano Jun 12, 2024
1bc00ce
feat!: [#591] extract new types for SMTP server configuration
josecelano Jun 13, 2024
52f3d9c
feat!: [#591] inject full socket address in configuration
josecelano Jun 13, 2024
cb8935b
feat!: [#591] use full socket addr in net config instead of only the …
josecelano Jun 13, 2024
35a125e
refactor: [#591] order keys in config TOML files alphabetically
josecelano Jun 13, 2024
fb4f199
Merge torrust/torrust-index#631: Configuration overhaul: version 2 fo…
josecelano Jun 13, 2024
d61d670
chore(deps): update dependencies
josecelano Jun 13, 2024
03fbbd9
Merge torrust/torrust-index#632: Update dependencies
josecelano Jun 13, 2024
9962266
fix: [#635] udpate tracker config
josecelano Jun 19, 2024
9d54f16
Merge torrust/torrust-index#637: Update tracker config
josecelano Jun 19, 2024
5bd98e5
chore(deps): update dependencies
josecelano Jun 19, 2024
2abfcce
Merge torrust/torrust-index#639: Update dependencies
josecelano Jun 19, 2024
9ce44f4
fix: [#635] udpate tracker config
josecelano Jun 19, 2024
33201ca
Merge torrust/torrust-index#640: Update tracker config
josecelano Jun 19, 2024
44ed14b
chore(deps): update dependencies
josecelano Jul 2, 2024
0bcce16
chore: bump build-push-action action from 5 to 6
josecelano Jul 2, 2024
b55742b
Merge torrust/torrust-index#649: Update dependencies
josecelano Jul 2, 2024
940c246
fix: [#648] udpate tracker configuration
josecelano Jul 2, 2024
0a2db2f
Merge torrust/torrust-index#650: Udpate tracker configuration
josecelano Jul 2, 2024
238340b
feat: add version to config file
josecelano Jul 2, 2024
bfd3f37
Merge torrust/torrust-index#656: Configuration overhaul: add `version…
josecelano Jul 2, 2024
f39f5e5
feat: print the final configuration to console
josecelano Jul 2, 2024
a2b8fc5
refactor: normalize log texts
josecelano Jul 2, 2024
5e8692b
Merge torrust/torrust-index#658: Configuration overhaul: print the fi…
josecelano Jul 2, 2024
df96264
feat: [#652] rename config option log_level to threshold
josecelano Jul 2, 2024
9e49b9f
Merge torrust/torrust-index#659: Configuration overhaul: rename `log_…
josecelano Jul 2, 2024
cea5b44
chore(deps): update dependencies
mario-nt Jul 2, 2024
425550b
Merge torrust/torrust-index#660: Update dependencies
josecelano Jul 3, 2024
6104103
feat: [#655] remove tracker mode in config
josecelano Jul 3, 2024
9895346
feat: [#615] casbin package added
mario-nt Jun 7, 2024
d9ea173
feat: [#615] initial casbin configuration
mario-nt Jun 8, 2024
7a39d0b
refactor: [#615] policy file allows admin user to perform any action
mario-nt Jun 11, 2024
e00b0f6
feat: [#615] added Casbin enforcer to app state
mario-nt Jun 11, 2024
58a33e7
feat: [#615] added authorization for delete torrent action
mario-nt Jun 13, 2024
ba0ad37
refactor: [#615] code cleanup and improved comments
mario-nt Jun 15, 2024
e13f579
feat: [#615] authorization service implemented for ban user handler
mario-nt Jun 18, 2024
5dc9dca
refactor: [#615] more human readable policy file
mario-nt Jun 20, 2024
344857e
refactor: [#615] model is now read from string instead of file and co…
mario-nt Jun 22, 2024
f24afaf
refactor: [#165] removed unused model file
mario-nt Jun 22, 2024
7104b61
feat: [#615] policy is now loaded from code and minor refactors
mario-nt Jun 26, 2024
463c533
refactor: [#615] new panic messages and minor refactorings
mario-nt Jun 26, 2024
22b0e67
refactor: [#615] delete unused Casbin folder
mario-nt Jun 26, 2024
3671c78
refactor: [#615] explicit Casbin imports and policy now defined as s…
mario-nt Jun 30, 2024
6e1877c
refactor: [#615] new get role method, new user role enum and minor re…
mario-nt Jul 2, 2024
389acc4
chore(deps): update dependencies
mario-nt Jul 3, 2024
f5ee7f5
Merge torrust/torrust-index#661: Configuration overhaul: split `Track…
josecelano Jul 3, 2024
2a3bd23
Merge torrust/torrust-index#624: #615 Use Casbin for the authorizatio…
josecelano Jul 3, 2024
e2a42ed
fix: [#665] update tracker database driver config
josecelano Jul 5, 2024
304221e
Merge torrust/torrust-index#666: Update tracker database driver config
josecelano Jul 5, 2024
1c5e862
feat: [#654] new registration confg section
josecelano Jul 9, 2024
29cc9dc
feat: [#654] remove config option email_on_signup
josecelano Jul 9, 2024
e0dbdbe
feat: [#654] remove config option email_verification_enabled
josecelano Jul 9, 2024
4fbeead
fix: bug, allow empty email is registration when it's optional
josecelano Jul 9, 2024
a5e745e
refactor: move ConfigurationPublic
josecelano Jul 9, 2024
8d660b8
docs: remove endpoint doc
josecelano Jul 9, 2024
dc6380d
Merge torrust/torrust-index#670: Configuration overhaul: make mail-re…
josecelano Jul 10, 2024
bcc3f81
chore(deps): update dependencies
josecelano Jul 10, 2024
f41b725
Merge torrust/torrust-index#671: Update dependencies
josecelano Jul 10, 2024
35528b4
feat: [#674] rename email config option
josecelano Jul 11, 2024
152ca2d
Merge torrust/torrust-index#675: Rename email config option
josecelano Jul 11, 2024
28ac404
chore(deps): update depedencies
josecelano Jul 29, 2024
6dd4e19
Merge torrust/torrust-index#684: Update depedencies
josecelano Jul 29, 2024
72f4c69
fix: [#580] E2E tests failing with MySQL
josecelano Jul 29, 2024
50aa14e
Merge torrust/torrust-index#686: fix: [#580] E2E tests failing with M…
josecelano Jul 29, 2024
da6606f
chore: [#685] fix Containerfile linter warning
josecelano Jul 29, 2024
bb10ae4
Merge torrust/torrust-index#687: Fix Containerfile linter warning
josecelano Jul 29, 2024
6ca8a63
fix: [#696] update tracker configuration
josecelano Aug 2, 2024
330f490
Merge torrust/torrust-index#697: Update tracker configuration
josecelano Aug 2, 2024
5bd611b
feat: [#672] improve metadata section in configuration
josecelano Aug 2, 2024
242687a
Merge torrust/torrust-index#698: Improve metadata section in configur…
josecelano Aug 2, 2024
c9654e0
feat: [#653] rename config option secret_key
josecelano Aug 2, 2024
183e372
Merge torrust/torrust-index#699: Rename config option `secret_key` to…
josecelano Aug 2, 2024
3697040
feat!: [#673] make some config options mandatory
josecelano Aug 2, 2024
8a7c841
Merge torrust/torrust-index#700: Config overhaul: make some fields ma…
josecelano Aug 2, 2024
a757c5c
refactor: [#615] new about service and minor refactor to existing code
mario-nt Jul 3, 2024
6f8de80
feat: [#615] authorization service implemented for the about service
mario-nt Jul 6, 2024
eee3349
refactor: [#615] new get tags service method
mario-nt Jul 6, 2024
cd8f609
feat: [#615] authorization implemented for get tags method
mario-nt Jul 6, 2024
fe11c2f
refactor: [#615] added comments for new functions
mario-nt Jul 7, 2024
839a00d
feat: [#615] New get categories service method
mario-nt Jul 7, 2024
0ac5f9b
refactor: [#615] get all categories handler now calls the category se…
mario-nt Jul 7, 2024
4f6ea18
refactor: [#615] new action and reordered old ones for cohesion
mario-nt Jul 10, 2024
173f43d
feat: [#615] authorization layer implemented for the proxy service
mario-nt Jul 10, 2024
056cb83
refactor: [#615] methods used by the proxy service now use the user i…
mario-nt Jul 10, 2024
d1d2941
refactor: [#615] fix linting errors
mario-nt Jul 10, 2024
530f37a
feat: [#615] admin user is now authorize to see proxied images
mario-nt Jul 10, 2024
2880f7c
feat: [#615] added authorization layer for get public settings method…
mario-nt Jul 12, 2024
b483c8e
refactor: [#615] renamed variable
mario-nt Jul 12, 2024
1c607c2
refactor: [#615] added optional logged in user to public handlers and…
mario-nt Jul 12, 2024
b5171bf
feat: [#615] authorization layer added for add torrent method of the …
mario-nt Jul 13, 2024
7bb6ff7
feat: [#615] authorization layer implemented for the get torrent meth…
mario-nt Jul 14, 2024
b3ffc9f
feat: [#615] new get canonical info hash method
mario-nt Jul 17, 2024
d56d66c
refactor: [#615] download torrent handler now calls the torrent servi…
mario-nt Jul 17, 2024
f264e75
fix: [#615] fix unfinished comment
mario-nt Jul 17, 2024
1342dce
feat: [#615] authorization layer implemented for the get torrents han…
mario-nt Jul 17, 2024
f8e7570
feat: [#615] authorization layer added to the get torrent info method…
mario-nt Jul 17, 2024
543d804
refactor: [#615] redirect to details url with infohash method now cal…
mario-nt Jul 17, 2024
e614e2f
feat: [#615] authorization layer added to the change password method …
mario-nt Jul 21, 2024
93b15ac
refactor: [#615] renamed variables to maybe_user_id
mario-nt Jul 22, 2024
935eb53
refactor: [#615] rearrange actions
mario-nt Jul 22, 2024
836c94d
refactor: [#615] upload torrent handler now uses an optional user id
mario-nt Aug 3, 2024
42fb031
refactor: [#615] renamed error to be more human friendly
mario-nt Aug 3, 2024
e527867
fix: [#615] adjusted http error code for test so it pass
mario-nt Aug 3, 2024
00c293c
refactor: [#615] added missing error to function comments
mario-nt Aug 3, 2024
dbcd0e1
refactor: [#615] added missing error to handler comments
mario-nt Aug 3, 2024
c22c919
refactor: [#615] change password handler and function now use optiona…
mario-nt Aug 4, 2024
6010155
refactor: [#615] handlers and functions now use optional user id
mario-nt Aug 4, 2024
0360517
refactor: [#615] changed status code so tests pass
mario-nt Aug 4, 2024
d8b3ee2
refactor: [#615] change test http return code
mario-nt Aug 4, 2024
394a705
chore(deps): update depedencies
josecelano Aug 5, 2024
403c549
Merge torrust/torrust-index#701: Update depedencies
josecelano Aug 5, 2024
f38b628
refactor: [#615] new authorization error for guest users
mario-nt Aug 5, 2024
a39ad21
Merge torrust/torrust-index#662: #615: Authorization for public handlers
josecelano Aug 5, 2024
c1a5c25
feat: [#702] allow overwriting casbin configuration
josecelano Aug 7, 2024
469922e
Merge torrust/torrust-index#703: Feat: allow overwriting casbin confi…
josecelano Aug 7, 2024
12316b1
chore: remove debugging code
josecelano Aug 7, 2024
f795f87
Merge torrust/torrust-index#704: Remove debugging code
josecelano Aug 7, 2024
04c3199
chore(deps): update dependencies
josecelano Aug 12, 2024
6cb94c4
fix: linter errors
josecelano Aug 12, 2024
4d85120
Merge torrust/torrust-index#711: Update dependencies and fix linter e…
josecelano Aug 12, 2024
7b3cc13
fix: [710] make secrets in config options mandatory
josecelano Aug 12, 2024
cb0e375
fix: [#653] rename auth.secret_key config option
josecelano Aug 12, 2024
8156fd8
Merge torrust/torrust-index#713: Make secrets in config options manda…
josecelano Aug 12, 2024
4c568f8
chore: synchronize version with tracker 3.0.0-alpha.12-develop
josecelano Aug 13, 2024
a24f128
Merge torrust/torrust-index#714: chore: synchronize version with trac…
josecelano Aug 13, 2024
817cc7e
release: version 3.0.0-alpha.12
josecelano Aug 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
/config-tracker.local.toml
/config.local.toml
/config.toml
/contrib/dev-tools/container/
/cspell.json
/data_v2.db*
/data.db
/data.db*
/docker/
/project-words.txt
/README.md
/rustfmt.toml
/storage/
/target/
/target/
11 changes: 6 additions & 5 deletions .env.local
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DATABASE_URL=sqlite://storage/database/data.db?mode=rwc
TORRUST_IDX_BACK_CONFIG=
TORRUST_IDX_BACK_USER_UID=1000
TORRUST_TRACKER_CONFIG=
TORRUST_TRACKER_DATABASE_DRIVER=sqlite3
TORRUST_TRACKER_API_ADMIN_TOKEN=MyAccessToken
TORRUST_INDEX_CONFIG_TOML=
TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY=MaxVerstappenWC2021
USER_ID=1000
TORRUST_TRACKER_CONFIG_TOML=
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=Sqlite3
TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN=MyAccessToken
14 changes: 7 additions & 7 deletions .github/workflows/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- id: build
name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./Containerfile
push: false
Expand Down Expand Up @@ -111,23 +111,23 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
"${{ secrets.DOCKER_HUB_USERNAME }}/${{secrets.DOCKER_HUB_REPOSITORY_NAME }}"
"${{ vars.DOCKER_HUB_USERNAME }}/${{vars.DOCKER_HUB_REPOSITORY_NAME }}"
tags: |
type=ref,event=branch

- id: login
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- id: setup
name: Setup Toolchain
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./Containerfile
push: true
Expand All @@ -149,7 +149,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
"${{ secrets.DOCKER_HUB_USERNAME }}/${{secrets.DOCKER_HUB_REPOSITORY_NAME }}"
"${{ vars.DOCKER_HUB_USERNAME }}/${{vars.DOCKER_HUB_REPOSITORY_NAME }}"
tags: |
type=semver,value=${{ needs.context.outputs.version }},pattern={{raw}}
type=semver,value=${{ needs.context.outputs.version }},pattern={{version}}
Expand All @@ -160,15 +160,15 @@ jobs:
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- id: setup
name: Setup Toolchain
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./Containerfile
push: true
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
name: Install Tools
uses: taiki-e/install-action@v2
with:
tool: grcov
tool: cargo-llvm-cov, cargo-nextest, grcov

- id: imdl
name: Install Intermodal
Expand All @@ -68,13 +68,17 @@ jobs:
name: Run Unit Tests
run: cargo test --tests --benches --examples --workspace --all-targets --all-features

- id: coverage
name: Generate Coverage Report
- id: coverage-llvm
name: Generate Coverage Report with LLVM
run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features

- id: coverage-grcov
name: Generate Coverage Report with grcov
uses: alekitto/grcov@v0.2

- id: upload
name: Upload Coverage Report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ steps.coverage.outputs.report }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- id: sync
name: Apply Labels from File
uses: EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8
uses: EndBug/label-sync@v2
with:
config-file: .github/labels.json
delete-other-labels: true
Expand Down
45 changes: 36 additions & 9 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ jobs:
name: Make Build Clean
run: cargo clean

- id: tools
name: Install Tools
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov, cargo-nextest

- id: imdl
name: Install Intermodal
run: cargo install imdl
Expand All @@ -129,6 +123,39 @@ jobs:
name: Run Unit Tests
run: cargo test --tests --benches --examples --workspace --all-targets --all-features

- id: coverage
name: Generate Coverage Report
run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features
integration:
name: Integrations
runs-on: ubuntu-latest
needs: check

strategy:
matrix:
toolchain: [stable, nightly]

steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v4

- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}

- id: cache
name: Enable Job Cache
uses: Swatinem/rust-cache@v2

# Temporary Cleaning to avoid Rust Compiler Bug
- id: clean
name: Make Build Clean
run: cargo clean

- id: test-sqlite
name: Run Integration Tests (SQLite)
run: ./contrib/dev-tools/container/e2e/sqlite/run-e2e-tests.sh

- id: test-mysql
name: Run Integration Tests (MySQL)
run: ./contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/.coverage/
/.env
/.idea/
/config.toml
/data_v2.db*
/data.db*
/output/
/storage/
/target
/uploads/
/.idea/
/uploads/
Loading
Loading