Commit graph

25 commits

Author SHA1 Message Date
2755e346d7
feat: impl repo search with sqlite's FTS 2023-02-23 13:04:14 +05:30
e726f2234d
feat: use fixed value for an instance for DNS challenge
DESCRIPTION
    Randomly generated values for forge ownership verification through
    DNS TXT records was making development process complicated. Using
    starchart instance's hostname for the TXT record's value is secure
    enough for our use case.

    This patch gets rid of all the code necessary to implement random
    value challenges
2023-02-22 12:05:49 +05:30
f8d33e04e8
feat: mark entries as imported to differentiate b/w native crawls and
imported records
2023-02-11 19:40:04 +05:30
31fd0f0c51
chore: clippy lints 2022-07-15 20:59:32 +05:30
fe8bd2fb26
fix & chore: handle hostname/URL cleaning within trait implementation
SUMMARY
    Renamed function parameters from "hostname" to "url" wherever a
    url::Url is received

    db_core::get_hostname is renamed to db_core::clean_url, better
    describing its new implementation

    forge_core::get_hostname is renamed to forge_core::get_url to better
    describe its new implementation

URL PROCESSING METHODS

    federate/federate-core
	Parses URL and returns only the hostname

    db/db-core
	Parses URL, cleans it by removing path and query parameters and
	returns the end result
2022-07-15 20:52:47 +05:30
Dat Adithya
eb97ded32c
Merge branch 'forgeflux-org:master' into master 2022-07-05 14:26:55 +05:30
dat-adi
a65115bfeb fix: Refactored grammatical errors 2022-07-05 14:05:57 +05:30
7e1903f807
feat: sqlx postgres: impl interface to get all forges 2022-06-09 14:38:52 +05:30
7b30c08f5f
feat: impl interface to get user data sqlx sqlite 2022-06-04 20:58:05 +05:30
6fb71e0641
feat: impl get_forge for sqlx sqlite 2022-06-03 23:05:29 +05:30
10f33d8ea6
feat: sqlx sqlite create db file if not present 2022-05-24 20:30:43 +05:30
52cd757ca7
feat: explicitly mention cargo entry points 2022-05-23 18:54:55 +05:30
0586f2e670 feat: get all repositories trait def and impl for sqlx sqlite 2022-05-19 21:38:13 +05:30
60f76b63d4 feat: save hostname when creating challenges 2022-05-19 19:14:31 +05:30
b884d361b0 feat: define and implement(sqlx sqlite) interfaces for CRUD of DNS challenges 2022-05-19 14:12:57 +05:30
8ad466dbc8
fix: rm unique constraint on profile photo link
DESCRIPTION
    If user hasn't configured a profile photo on their forge instance,
    it would point to the default photo of the forge instance, which
    might be the same for all users without a profile photo on that
    forge instance.
2022-05-18 19:57:48 +05:30
65176bbdea
feat: impl interface to del user and repo sqlx sqlite 2022-05-17 16:15:04 +05:30
dcb11a4d11
feat: database errors 2022-05-17 14:56:33 +05:30
ec9bb69f98
feat: type adjustmets 2022-05-17 01:03:27 +05:30
6355835135
chore: fix types for easy use with bin 2022-05-04 22:35:23 +05:30
21c93a5e4e
feat: implement create_repository for sqlite 2022-05-04 12:10:37 +05:30
2055a00565
feat: sqlite sqlx implementation for repository_exists 2022-05-01 19:08:01 +05:30
cb9b8d6d0d
fix: user_exists was a copy of hostname_exists, now fixed 2022-04-30 23:50:59 +05:30
6f21a8b49e
feat: implement add_user and user_exists for sqlite 2022-04-20 16:27:56 +05:30
5099eefa54
feat: implement SCDatabase for sqlite 2022-04-12 17:48:05 +05:30