refactor: Don't leak rocket::State into models
Previously the State was passed into the models where it had no reason to be. So
a minor cleanup has been performed to right this.
Created by zj on Oct 26, 2021, 1:40 PM
State:
HXO5BDOYG5CCXVED6UAVG46PC3NCF7NHSMUBYZZ47MBI463NLU4QCauthz: Only repository owners can push changes
Before all users could push changes to a repository. This was a shortcut which
is changed now. For now only owners can push new changes to a repository. This
isn't great either, as it doesn't allow for collaboration as of yet. However,
it's a better default and allows nidobyte to be deployed on the internet soon
after.
As such this default has now been chosen, and will later be updated.
Created by zj on Oct 26, 2021, 11:37 AM
State:
2P52OIYNQ6V75S53FCDPHRJDDNBA5MKZRWNCIDYJ5KYY2WZMUZ5QCrustfmt: Remove user specific config
Allow users flexibility to run their own setup, while remain strict with the
code style.
Created by zj on Oct 14, 2021, 2:11 PM
State:
UKIFH5S3QI24ARIBRRYUZ35KVKLJOL572OLOWBUCL2KEVXFJCGXQCrustfmt: Add config to make it explicit
Ran `rustfmt --print-config=current $PWD > .rustfmt.toml` to make my defaults
explicit. This should create a standard formatting pattern when external
contributors send patches too.
Created by zj on Oct 14, 2021, 1:34 PM
State:
LFGDN5XYAUVK5ABYIOUNXPHSAJYYIWKVJTBFC56QUYSQ62S3IMEACtests: Reorganize the directory
Created by zj on Oct 12, 2021, 8:05 PM
State:
QRYUPHF6EMRIJVIU5SROM6VTMCMQGQXLANASKIMIB2GZ72TYSEYACcargo: Fix last conflict
While most changes were great introduced by
I43RAQTR6WY7KFUFBU5ALAWSNNQZPHSHATOVXFCERQRFTTK5OHNQC, in this case there was
one more failure for me. This resolves the issues for good.
Created by zj on Oct 12, 2021, 7:55 PM
State:
NNJVQMCAROSRPRPHTEXAIL5CWPLRP4V6HLRJUGL4IA6PC2R3O2AACclean code
Created by fzzr on Oct 12, 2021, 2:55 PM
State:
6ZIRQH6CCAWZC5ZJJ2FUA7Y2GTNGWWH4U33PUEFNS2HOMNYSTSJACUser: improve create code to use as factory
Removes duplication and improves code style.
Created by zj on Oct 12, 2021, 7:45 PM
State:
VCRFLA2S2PLGULZNYFA2HWWJ2CX4GUJQVQMBNQDEYLSAL56R4JJQCauth: Allow HTTP basic auth for users
This can be used soon to push data as a user from the terminal where the cookie
isn't set like in the browser.
Created by zj on Oct 12, 2021, 11:48 AM
State:
PYS3WXEVE6OTPTLWE37YNMKA6BCXGTTEG3PSBHFKYADNHGRWDEMACrefactor: Move User guard to the model
The User model didn't have the FromRequest 'constructor' for the guard. This felt
off. Now some Request knowledge leaks to the model, but still it seems better.
Created by zj on Oct 11, 2021, 10:03 AM
State:
EHSET3LZ3MKNGRADAT3PEGF5KCLTGZ4OYRMCBKX4ZC3N6HX27Z7ACdependecy: Remove future
No longer required, so cleaning it up right now.
Created by zj on Oct 8, 2021, 12:28 PM
State:
DLUQKXAW4IXFZJOPP5QPVEI3DR6D42T2BJZKFNSQMONYXEL7PRNQCtesting: Move tests to specific directory
Tests I didn't really write until today, as I mostly didn't really know how to
set it up. This is now partially mitigated, just by forcing myself to do it.
There's a few problems still in the code; the database is shared with the dev
application for instance. Though as a start I'll take it.
Created by zj on Oct 8, 2021, 11:49 AM
State:
ZCZM42FMNUR62E4XCRSX26LYRAE26N2X3W5S3IF3PURBIITAH75QCtesting: Move tests to specific directory
Tests I didn't really write until today, as I mostly didn't really know how to
set it up. This is now partially mitigated, just by forcing myself to do it.
There's a few problems still in the code; the database is shared with the dev
application for instance. Though as a start I'll take it.
Created by zj on Oct 8, 2021, 11:49 AM
State:
N7NINYYPLOK5R4K2KQCYW7DZREQZBRWQ6YD7B4BZ3BAPQDFSRLZQCrocket: User sign up guard forwards over failures
When no user can be found, the User implementation of FromRequest was failing,
which is a mistake. This meant that no other routes were tried and thus assigning
policies to routes failed. This changes fixes that by forwarding instead. To be
frank, this is over forwarding, and can still be improved on.
Created by zj on Oct 7, 2021, 2:35 PM
State:
CXZZG5WBPCAMMDZJMBPVO3KSSKRNYWXFSQRLWXAXL6OFHKJUJ44ACAdd MPL 2.0 license
Chose the Mozilla Public License as it's a decent start for now. MIT is very
permissive.
Created by zj on Oct 7, 2021, 1:17 PM
State:
T6G5HVLPCOAOBDTDA6JNQRG3C6S7WW2OO7YUDLGFAKJM4ZR3TGSQCui: Fix navigation issues
To get the bare minimum working, this change adds some basic navigation to the
applicaiton. It's far from perfect, but nonetheless, it's something. :)
Created by zj on Oct 7, 2021, 12:20 PM
State:
DQKEFVFSARDGTHTHZERUKFG4CXSUDVXE6JWSH6NLZYFI4YDKUE6QCtemplates: Fix navigation mocks
Cleans up the directory structure for templates and fixes the navigation bugs in
the applications too.
Includes a context! macro which is lifted from upstream, but is currently
unreleased. When rocket_dyn_templates is updates, it could be DRY'ed out.
Created by zj on Sep 22, 2021, 7:41 AM
State:
FJ5VQJJODCDSAJCZHIDUFGXJKT356IC3D27EAJM7V3JY3H3KIJBACcargo check: Fix last warning
One Result return value went unchecked, and that could lead to untrackable bugs.
This has now been checked, and prints a log line.
Created by zj on Sep 21, 2021, 9:35 AM
State:
UP2IBRY6XCMY272EWPQFYJUKS4AJLRUPYQ6F2E3H3EIPN45EX6WQCcargo check: Fix identities route complaints
As the route is at this time not doing anything as identities cannot be stored
right now, the endpoint can ignore a lot of path elements. This fixes
`cargo check` for the most part.
Created by zj on Sep 21, 2021, 9:32 AM
State:
KUCDMYCK3FG6U5T35YHKGW2MP6VQEEDZQX46XXTRHQFEITUAEIZQCroutes: Move user routes to controllers module
The last routes to move, the src directory now only has a main.rs file and
directories.
Created by zj on Sep 21, 2021, 9:27 AM
State:
CZLJDUUIFYVJP6YEQ74A5WJ6XAXM4VMTP3QG3BCM7OBV3PEAP2PQCroutes: Move project routes to controllers module
Much like other routes, just move the files and clean up the tree.
Created by zj on Sep 21, 2021, 9:08 AM
State:
UBMQCOPHDFZ4KOTWMKPB74X6TECPPQGXRMCTFJ6WIJ2RMV5QXWIQC