Commit graph

27 commits

Author SHA1 Message Date
0e040e4875
feat: search repositories 2023-02-23 13:03:58 +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
9a3425eabe
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:58:40 +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
1ec46670ec
feat: def interface to get all forges 2022-06-09 14:36:22 +05:30
653088376a
feat: def interface to get user data 2022-06-04 20:57:48 +05:30
7b343a2cd5
feat: def get_forge interface 2022-06-03 23:05:09 +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
5481055e45
feat: define interface to del user and repository 2022-05-17 16:14:52 +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
cb8500da3f
feat: create_repository interface 2022-05-04 12:10:13 +05:30
85aafb4b96
feat: add repository_exists method 2022-05-01 19:07:49 +05:30
4cd62dcb40
feat: uniform hostname extraction for DB storage via get_hostname 2022-04-30 23:45:37 +05:30
5102531a70
feat: add_user and user_exists with accompanying test suites
DESCRIPTION
    add_user
	Adds new user to DB. Implementers must ensure username
	uniqueness scoped at forge instance level. When applicable, HTML
	link to profile photo may be stored as we..
    user_exists
	Checks if a user exists in database. Optionally provide hostname
	of forge instance to get forge-specific results.
2022-04-20 16:23:38 +05:30
d3d2abf074
feat: add tests to check for forge types in DB 2022-04-12 17:47:34 +05:30
99fabab5bc
feat: add tests to check if forge type is loaded into DB 2022-04-12 17:44:21 +05:30
2a8283acc0
feat: define core DB traits to store, check for existence and delete
forges
2022-04-12 17:35:09 +05:30