52 Commits

Author SHA1 Message Date
Aravinth Manivannan
bbfd19d250
fix: get non-imported forges 2023-03-26 01:04:30 +05:30
Aravinth Manivannan
649f319f9b
fix: ignore when the same hostname is introduced twice 2023-03-04 18:52:29 +05:30
Aravinth Manivannan
0576a54af7
feat: record starchart imports 2023-03-02 19:13:28 +05:30
Aravinth Manivannan
7f4e6d5bda
chore: lints 2023-03-02 18:09:44 +05:30
Aravinth Manivannan
c5a36ca685
feat: import and search federating mini indices 2023-03-02 15:39:43 +05:30
Aravinth Manivannan
a22defdab1
feat: index words on user and repo creation and rm from index when they
are deleted
2023-03-02 13:24:35 +05:30
Aravinth Manivannan
f53a0afada
feat: implement mini-index 2023-03-02 13:09:48 +05:30
Aravinth Manivannan
28bef1623f
fix: ignore insert if a Starchart instance is already known 2023-02-28 16:37:22 +05:30
Aravinth Manivannan
83175b333a
feat: paginated introduced starchart instances list with tests 2023-02-28 16:13:41 +05:30
Aravinth Manivannan
9ff4788b69
feat & fix: insert fts_repositories when repo is not present and implement introducer 2023-02-28 16:02:36 +05:30
Aravinth Manivannan
38fee3daf3
chore: replace CreateForge.import with starchart_url for marking forge
instances with Starchart instances
2023-02-28 15:59:50 +05:30
Aravinth Manivannan
3fb7b27ab3
feat: filter imported and native forges 2023-02-26 23:38:36 +05:30
Aravinth Manivannan
5ed1ebacef
feat: implement repo API search in REST API 2023-02-26 23:16:25 +05:30
Aravinth Manivannan
2755e346d7
feat: impl repo search with sqlite's FTS 2023-02-23 13:04:14 +05:30
Aravinth Manivannan
0e040e4875
feat: search repositories 2023-02-23 13:03:58 +05:30
Aravinth Manivannan
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
Aravinth Manivannan
f8d33e04e8
feat: mark entries as imported to differentiate b/w native crawls and
imported records
2023-02-11 19:40:04 +05:30
realaravinth
31fd0f0c51
chore: clippy lints 2022-07-15 20:59:32 +05:30
realaravinth
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
realaravinth
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
realaravinth
7e1903f807
feat: sqlx postgres: impl interface to get all forges 2022-06-09 14:38:52 +05:30
realaravinth
1ec46670ec
feat: def interface to get all forges 2022-06-09 14:36:22 +05:30
realaravinth
7b30c08f5f
feat: impl interface to get user data sqlx sqlite 2022-06-04 20:58:05 +05:30
realaravinth
653088376a
feat: def interface to get user data 2022-06-04 20:57:48 +05:30
realaravinth
6fb71e0641
feat: impl get_forge for sqlx sqlite 2022-06-03 23:05:29 +05:30
realaravinth
7b343a2cd5
feat: def get_forge interface 2022-06-03 23:05:09 +05:30
realaravinth
10f33d8ea6
feat: sqlx sqlite create db file if not present 2022-05-24 20:30:43 +05:30
realaravinth
52cd757ca7
feat: explicitly mention cargo entry points 2022-05-23 18:54:55 +05:30
realaravinth
0586f2e670 feat: get all repositories trait def and impl for sqlx sqlite 2022-05-19 21:38:13 +05:30
realaravinth
60f76b63d4 feat: save hostname when creating challenges 2022-05-19 19:14:31 +05:30
realaravinth
b884d361b0 feat: define and implement(sqlx sqlite) interfaces for CRUD of DNS challenges 2022-05-19 14:12:57 +05:30
realaravinth
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
realaravinth
65176bbdea
feat: impl interface to del user and repo sqlx sqlite 2022-05-17 16:15:04 +05:30
realaravinth
5481055e45
feat: define interface to del user and repository 2022-05-17 16:14:52 +05:30
realaravinth
dcb11a4d11
feat: database errors 2022-05-17 14:56:33 +05:30
realaravinth
ec9bb69f98
feat: type adjustmets 2022-05-17 01:03:27 +05:30
realaravinth
6355835135
chore: fix types for easy use with bin 2022-05-04 22:35:23 +05:30
realaravinth
21c93a5e4e
feat: implement create_repository for sqlite 2022-05-04 12:10:37 +05:30
realaravinth
cb8500da3f
feat: create_repository interface 2022-05-04 12:10:13 +05:30
realaravinth
2055a00565
feat: sqlite sqlx implementation for repository_exists 2022-05-01 19:08:01 +05:30
realaravinth
85aafb4b96
feat: add repository_exists method 2022-05-01 19:07:49 +05:30
realaravinth
cb9b8d6d0d
fix: user_exists was a copy of hostname_exists, now fixed 2022-04-30 23:50:59 +05:30
realaravinth
4cd62dcb40
feat: uniform hostname extraction for DB storage via get_hostname 2022-04-30 23:45:37 +05:30
realaravinth
6f21a8b49e
feat: implement add_user and user_exists for sqlite 2022-04-20 16:27:56 +05:30
realaravinth
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
realaravinth
5099eefa54
feat: implement SCDatabase for sqlite 2022-04-12 17:48:05 +05:30
realaravinth
d3d2abf074
feat: add tests to check for forge types in DB 2022-04-12 17:47:34 +05:30
realaravinth
99fabab5bc
feat: add tests to check if forge type is loaded into DB 2022-04-12 17:44:21 +05:30