Commit 54816db
authored
Alpha release to help contributors get started building LitePolis packages (#23)
* Create requirements.txt for front end
* Create main.py
* Create dashboard.py
* Create portal.py
* Update dashboard.py
* Create main.py
* Create requirements.txt
* Create auth.py
* Create db.py
* Create public.py
* Create secure.py
* Update requirements.txt
* get-set functions of tables
* Create db.sql
* Update comments
* Create dockerfile
* define APIs
* update env var list
* Update auth.py with docstrings
* Update db.py with new format
The function `get_user_from_api_key` will cause error at the moment, waiting to be resolved
Added docstring waiting for edit, templates for now
Added classes for each table waiting for data dictionary before detailed implementation, and docstring
* Create db.dbml
* Update db.sql
* Update README.md
* Update README.md
* test and debug with StarRocks this file works
* Update db.dbml
Update with tested SQL
* Add files via upload
* Update requirements.txt
* Update README.md
* Update dockerfile
* Update dockerfile
* Create database.md
* Update requirements.txt
* Comment py module and Impl Users class
* Implemented CRUD on tables
* Implement CRUD for apikeys table
* Added DB connection health chheck
* Implement API endpoints except for few Comments methods
* dependency for Unit test
* Create test_main.py
* Update requirements.txt
* Create README.md
* Update README.md
* Define test_main.py
* Correct DIR name
* correct DIR name
* bugfix non-exist import item
* Update public.py formatting returns
* implement test cases
implemented:
- test_read_main()
- test_read_secure_main()
- test_read_main_invalid_parameter()
- test_read_main_not_found()
- test_read_user_role()
* Update db.py bugfix query
setting database of connection
changing query string from mysql style to starrocks compatiable by removing qoute `"` in query string `query.get_sql()` format
* Update db.py bugfix queryreturn val
return is a tuple, get the first item
* Update db.py remove hardcoded config & bugfix db fetch
* Update secure.py implemented get role api
* Update db.py adding docstring
* Update db.py bugfix conversation insert keys
* Create test_db.py unitests
* Update test_db.py bugfix kwarg name errors
* Update db.py bugfix class attr name mistake
* Update test_db.py bugfix import
* Update db.py bugfix based on test cases
* Update test_db.py bugfix kwargs
* Update db.py bugfix post processing of db return val format
* Update test_db.py bugfix kwarg name and args
* Update db.py bugfix wrong operator in comparison
* Update db.py bugfix
API_KEY is Primary Key cannot update so `delete` and then `insert` as update
* Update db.py bugfix wrong operator in comparison
* Update test_db.py bugfix incomplete test data
* Update db.py bugfix inits optional arg must check is not None
* Update db.py Added return id for inserts
* Update test_db.py bugfix verify DB ops by ID of row
* Update test_db.py bugfix sequences and missing id
* Update test_db.py
* Update db.py starrocks does not support cursor.lastrowid
* Update test_db.py
* Update db.py bugfix align column names
* Update db.py bugfix comment insert data format
* Update test_db.py bugfix autoincremental key start from 1
* Update test_db.py bugfix interpret db return val format
* Update test_db.py bugfix wrong param
* Update db.py bugfix variable scope
* Update test_db.py bugfix interpret db return val format
* Update db.py impl comments update/approve
* Update public.py with docstring
* Update public.py
* Update test_main.py
* Update secure.py
docs will be added by tags_metadata
respond format to be defined in response_models
* Update db.py adding reject of comments
* Update secure.py
* Update db.py resolving issue #3
* Update test_db.py align with #6
* Update auth.py align with #6
* Update db.py align with #3 and #6
* Update test_db.py align with db.py
* Update test_db.pfy fix missing alignment
* Update test_db.py bugfix wrong test case
* Update secure.py align with db.py update
* Update secure.py adding metadata tags #3
* Update secure.py all endpoint uses Request Body and add docstr #3
Request Body based on doc https://fastapi.tiangolo.com/tutorial/body/
Add docstring to all functional endpoints
* Update requirements.txt add email-validator
* Update secure.py impl Response Model #3 #2
* Create README.md
* Update secure.py bugfix `renew` endpoint code deprecation
* Update test_main.py update align api doc
* align the return related to api keys
* fix endpoint url
* fix urls and http error codes, param name
* bugfix request json verification
* beautify
* bugfix request to create user
* bugfix parameters and asyncs
* fix syntax missing comma
* bugfix parameter name
* handle empty password
* temporary bugfix for moderation before impl
* Update and rename dockerfile to Dockerfile
* Create quickstart.sh
* Update and rename Dockerfile to Dockerfile-api
* Rename src/Dockerfile-api to src/api/Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Create Dockerfile
* Update Dockerfile add pytest case
* Update secure.py
* Update quickstart.sh
* Update quickstart.sh import sql file
* Update quickstart.sh add docker built
* Update quickstart.sh
* Update quickstart.sh
* Update quickstart.sh
* Update secure.py streamlit login with template
* Update main.py added a test and split login and allow join conversation without login
* Update requirements.txt
* Update requirements.txt add streamlit-cookie-controller
* Update main.py
* Update db.py with validation of user and API key param name beautify
* Update secure.py add login endpoint
* Update main.py
* Update main.py
* Update secure.py
* Update main.py
* Update main.py
* Update main.py fix syntax error
* Update requirements.txt fix typo
* Update main.py import missing dep
* Update main.py
* Create config.toml
* Update main.py
* Update portal.py
* Added role guest for users not login but trying to view and comment
A feature from polis and #13
* Add Python SDK generated by OpenAPI
* Add Python SDK generated by OpenAPI
* restructured the dirs to reduce scope for core module of LitePolis
* changed package name, add setuppy, litepolis as core engine for modularization
* Refactor to extreme minimal package manager
* Update core.py passes unittest
* refactored to use click for CLI interface
* resolve #16 test and app break problem
* syntax correct for get_apps()
* update URI and passing integration test with routers
* added cli command to download template for develop new module
* add config interface for modules
* adding ABC class for integration
* hide WIP `RouterIntegrationInterface`
* merge README from release branch
* Create python-publish.yml (#22)
Enable auto publish to PyPI after creating tag and release on GitHub
* add config server service and clean up unused file
* allow retrival of whole sector
* improved automated create script to help developer get started
* improved robustness
* Update setup.py version format
* add database template and finalize the create feature1 parent cf29d7e commit 54816db
File tree
8 files changed
+766
-9
lines changed- .github/workflows
- litepolis
- routers
8 files changed
+766
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
7 | 191 | | |
8 | 192 | | |
9 | 193 | | |
10 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
11 | 211 | | |
12 | 212 | | |
13 | 213 | | |
| 214 | + | |
14 | 215 | | |
15 | | - | |
16 | 216 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
20 | 220 | | |
21 | | - | |
22 | 221 | | |
23 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments