Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wannadb Web #1

Open
wants to merge 267 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
267 commits
Select commit Hold shift + click to select a range
32a9c52
add new routing
leonlolly Nov 28, 2023
1cd952f
add jwt token and user type
leonlolly Nov 28, 2023
573b2a3
add jwt token and user type
leonlolly Nov 28, 2023
f16ab87
add network and quote ports
leonlolly Nov 29, 2023
0e33830
adj naming and adding expiration to token
leonlolly Nov 29, 2023
32a63ce
adj naming and reformation
leonlolly Nov 29, 2023
9ae18fd
add register and login
leonlolly Nov 29, 2023
b661b4c
configured login and register for the frontend
cophilot Dec 8, 2023
c9d89ca
added routes doc
cophilot Dec 8, 2023
8198ed5
add pylint
leonlolly Dec 11, 2023
96b7e44
split requirements.txt
leonlolly Dec 11, 2023
8b73a19
create vev_routes and reformat
leonlolly Dec 11, 2023
38d8a59
reformat
leonlolly Dec 11, 2023
0628697
adjust requirements
leonlolly Dec 11, 2023
5dd4bbb
fix decode
leonlolly Dec 11, 2023
6094d61
rename
leonlolly Dec 11, 2023
f080d7c
add file upload
leonlolly Dec 11, 2023
4df4e24
bug fixes with user login in createTables
cophilot Dec 12, 2023
5b89477
refactor: renaming of variable
leonlolly Dec 12, 2023
1517a3b
refactor: renaming of variable
leonlolly Dec 12, 2023
bcb0c65
refactor: renaming of variables
leonlolly Dec 12, 2023
679f33b
refactor: renaming of variables
leonlolly Dec 12, 2023
216f62f
refactor: change file access
leonlolly Dec 12, 2023
ab2cfe5
refactor: change file access again
leonlolly Dec 12, 2023
2f36ad4
feat: add _getDocument
leonlolly Dec 12, 2023
f909467
refactor: tokenEncode
leonlolly Dec 12, 2023
2cce12a
refactor: createUserTable
leonlolly Dec 12, 2023
0320ecb
refactor: status codes
leonlolly Dec 12, 2023
9cc84c4
refactor: status codes
leonlolly Dec 12, 2023
4226090
refactor: add upload and create as well as adj the status codes
leonlolly Dec 12, 2023
b5ebb8c
fix(checkPassword): encoding was not necessary
leonlolly Dec 12, 2023
df44fdc
refactor(checkPassword):
leonlolly Dec 12, 2023
a530e81
feat: add all tables for dev
leonlolly Dec 12, 2023
6d6372a
feat: add all tables for dev
leonlolly Dec 12, 2023
b845960
spelling
leonlolly Dec 12, 2023
935e738
login bug fix
cophilot Dec 12, 2023
b118d62
formatting
cophilot Dec 12, 2023
fe1546c
fix(tokenDecode): cast id to int so id 1 will not be interpreted into…
leonlolly Dec 13, 2023
a9a7ba2
refactor: remove print
leonlolly Dec 13, 2023
b7ce6a0
feat(dev): add get document
leonlolly Dec 13, 2023
7aa5c3c
feat(dev): add get document
leonlolly Dec 13, 2023
f332ace
feat(addOrganisation): add Organisation id as an return
leonlolly Dec 13, 2023
bb715d5
feat(addOrganisation): add addOrganisation as an endpoint
leonlolly Dec 13, 2023
53307aa
Revert "login bug fix"
leonlolly Dec 13, 2023
ff0874f
feat(addOrganisation): add addOrganisation as an endpoint
leonlolly Dec 13, 2023
8052073
feat(login): add userid to token
leonlolly Dec 13, 2023
ff97bc0
feat(login): add userid to token
leonlolly Dec 13, 2023
03eea15
feat(execute_transaction): add IntegrityError as an error
leonlolly Dec 13, 2023
ee0657e
feat(creat_organisation): add error handling
leonlolly Dec 13, 2023
7243dc1
feat(creat_organisation): add error handling
leonlolly Dec 13, 2023
aed7bd3
feat(addUserToOrganisation): add endpoint as well as adjusting the un…
leonlolly Dec 13, 2023
22709d2
feat(addUserToOrganisation): add addUserToOrganisation to routing
leonlolly Dec 13, 2023
8d78817
build: update dependencies
leonlolly Dec 13, 2023
8ae39e3
build: update dependencies
leonlolly Dec 13, 2023
a81c7e1
encoding bug fix
cophilot Dec 13, 2023
7d96193
fix(checkPassword): anticipate different types
leonlolly Dec 13, 2023
6a079e0
createorg bug fix
cophilot Dec 13, 2023
a5dbde9
undo createorg bug fix
cophilot Dec 13, 2023
a86e6c5
feat(dev): alter table creation
leonlolly Dec 13, 2023
ab6b0cc
Merge branch 'db'
leonlolly Dec 13, 2023
7d41726
fix(createorg): cannot int(list)
cophilot Dec 13, 2023
d0172fc
feat(dev): add dropTables and added adjustable schemata
leonlolly Dec 14, 2023
afb5e11
feat(dev): add createSchema and dropSchema
leonlolly Dec 14, 2023
0c48518
feat(dev): add createSchema and dropSchema
leonlolly Dec 14, 2023
7ebcffc
fix: typo
leonlolly Dec 14, 2023
3df2e38
fix: change return behavior and add optional fetch option
leonlolly Dec 14, 2023
e668b69
feat(delete_user): add
leonlolly Dec 14, 2023
a0de5ef
feat(tokenDecode): adjust return types if expired
leonlolly Dec 14, 2023
265a9f0
style: reformat
leonlolly Dec 14, 2023
9847f22
fix(execute_transaction): return bug
leonlolly Dec 14, 2023
c4116e0
feat(tokenDecode):add prevent decode bug
leonlolly Dec 18, 2023
2a031d1
feat(upload_files): adjust endpoints
leonlolly Dec 18, 2023
865a3c7
fix: db error handling for some queries
leonlolly Dec 18, 2023
63dae93
fix: db error handling for some queries
leonlolly Dec 18, 2023
4b154b4
feat(register): give better endpoints
leonlolly Dec 18, 2023
671a4f4
feat(delete_user): give better endpoints
leonlolly Dec 18, 2023
5fd0c78
feat(create_organisation): give better endpoints
leonlolly Dec 18, 2023
1a0ed64
feat(get_organisations): add new endpoint get_organisations
leonlolly Dec 18, 2023
8403785
feat(get_organisations): add new endpoint get_organisations
leonlolly Dec 18, 2023
7dc549c
fix(users): adjusted retrun order
leonlolly Dec 19, 2023
735205e
feat(getOrganisationName): add getOrganisationName
leonlolly Dec 19, 2023
e83bdd4
feat(getOrganisationName): add getOrganisationName
leonlolly Dec 19, 2023
21f783d
feat(getOrganisationName): add getOrganisationName
leonlolly Dec 19, 2023
5e65fc1
feat: add getOrganisationNames
leonlolly Dec 19, 2023
97c68ae
feat(dev): adjust tables
leonlolly Dec 20, 2023
e8c314b
added leave org
cophilot Dec 21, 2023
bedbd48
added get memebers for org
cophilot Dec 22, 2023
db05b91
added addMember
cophilot Dec 22, 2023
388735c
Merge pull request #1 from lw86ruwo/add-leave-org
cophilot Jan 4, 2024
c8b063e
add env
leonlolly Jan 12, 2024
be12c12
add celery and debug
leonlolly Jan 12, 2024
2a615ff
adj dep
leonlolly Jan 12, 2024
f2c709f
add Cache_DB.py
leonlolly Jan 12, 2024
e2283d0
add core.py
leonlolly Jan 12, 2024
d852af6
style: reformat
leonlolly Jan 12, 2024
7ce16d2
add worker and db to project
leonlolly Jan 12, 2024
23d9ed4
add files.py
leonlolly Jan 12, 2024
1812c6e
mov
leonlolly Jan 12, 2024
3508a23
add Signal.py
leonlolly Jan 12, 2024
417c63a
add RedisCache.py
leonlolly Jan 12, 2024
c7e9ea6
mov
leonlolly Jan 12, 2024
de1dd58
add utils
leonlolly Jan 12, 2024
e147a5e
add inits
leonlolly Jan 12, 2024
a8eb7cf
replaced with files.py
leonlolly Jan 12, 2024
d97ccb7
add tasks.py
leonlolly Jan 12, 2024
d29a752
update
cophilot Jan 12, 2024
40a96f6
bug fixes and added get-files-for-org endpoint
cophilot Jan 12, 2024
1d0236c
added prod docker-compose file
cophilot Jan 12, 2024
a08beda
changes dir of entrypoint
cophilot Jan 12, 2024
508bdad
added prod scripts
cophilot Jan 12, 2024
3e6c5d1
Merge pull request #2 from lw86ruwo/bug-fixes
cophilot Jan 12, 2024
56c35d1
added updateFile and getUserNameSuggestion
cophilot Jan 13, 2024
4439510
Merge pull request #3 from lw86ruwo/adding-some-endpoints
cophilot Jan 13, 2024
718b64b
add init ResourceManager in a worker
leonlolly Jan 14, 2024
0cdf131
add document_base and status as endpoints
leonlolly Jan 14, 2024
63c2b5d
add getDocument_by_name
leonlolly Jan 14, 2024
0f87f71
add Emitable abstraction
leonlolly Jan 14, 2024
42ed9ed
renaming
leonlolly Jan 14, 2024
525e42f
add state
leonlolly Jan 14, 2024
62c4fc7
add workaround for pipeline
leonlolly Jan 14, 2024
1c820d1
adj add type support for functions
leonlolly Jan 14, 2024
f690d5b
formatting
leonlolly Jan 15, 2024
f0189c5
bug fixes
cophilot Jan 15, 2024
3763665
Merge pull request #4 from lw86ruwo/bug-fixes
cophilot Jan 15, 2024
74a5653
added delte document endpoint
cophilot Jan 15, 2024
a0fbee7
addded todos
cophilot Jan 15, 2024
74ee592
formatting
leonlolly Jan 16, 2024
2af7720
bug fixes
cophilot Jan 16, 2024
6512689
added vloume for worker
cophilot Jan 16, 2024
2af0aa4
formatting
leonlolly Jan 16, 2024
d7fb4c7
formatting
leonlolly Jan 16, 2024
66206f5
add: json parsing
leonlolly Jan 16, 2024
767a4b3
formatting
leonlolly Jan 16, 2024
34c5ba3
formatting
leonlolly Jan 16, 2024
6150714
formatting and access bug fix
leonlolly Jan 16, 2024
eb1ea39
fix emit error and formatting
leonlolly Jan 16, 2024
bb06dc2
added volume for flower
cophilot Jan 16, 2024
c9650b3
add update_document_base task
leonlolly Jan 16, 2024
76a078e
added /update/document_base
cophilot Jan 17, 2024
d142803
removed msg and cleand up the task status
leonlolly Jan 17, 2024
69064ea
update rout to restfull api formate
leonlolly Jan 17, 2024
e330ae7
update rout to restfull api formate
leonlolly Jan 17, 2024
0f4647b
Merge remote-tracking branch 'origin/main'
leonlolly Jan 17, 2024
2075d91
fix bug tokenDecode dos not exist
leonlolly Jan 17, 2024
c488410
fix bug when adding bytes to db
leonlolly Jan 17, 2024
96bef49
fix bug when adding bytes to db
leonlolly Jan 17, 2024
b869548
add todo
leonlolly Jan 17, 2024
a167faf
feat(add_attributes): add
leonlolly Jan 17, 2024
abf8bbe
feat: add remove_attributes, forget_matches_for_attribute,forget_matches
leonlolly Jan 17, 2024
c9c2c2f
fix(forget_matches): unnecessary attribute removed
leonlolly Jan 18, 2024
305959e
giant refactor
leonlolly Jan 23, 2024
dc6c73e
add user id bag to run
leonlolly Jan 23, 2024
61fe07a
rm old data management
leonlolly Jan 23, 2024
a02cb03
rm print
leonlolly Jan 23, 2024
66f8316
rm save and load
leonlolly Jan 23, 2024
1d6285a
adj task_status
leonlolly Jan 24, 2024
40c9062
adj(create_document): change types
leonlolly Jan 24, 2024
1c924f0
fix: potential bug prevented when accessing
leonlolly Jan 24, 2024
9196d8e
add(run): check for attr consistency
leonlolly Jan 24, 2024
481dbbd
fix: type adj
leonlolly Jan 24, 2024
1545484
bug fixes
cophilot Jan 24, 2024
69efbdb
removed CONSTRAINT
cophilot Jan 24, 2024
81757ff
bug fix
cophilot Jan 24, 2024
d8c7687
bug fixes
cophilot Jan 24, 2024
9841e64
add tasks
leonlolly Jan 24, 2024
2af6a59
add interaction_callback_fn
leonlolly Jan 24, 2024
10a9091
add(delete_user_space)
leonlolly Jan 24, 2024
1812bc2
feat(add): reset for resetting the signals
leonlolly Jan 24, 2024
1a34e22
add fix + todo
leonlolly Jan 24, 2024
f89b4d6
fix setter return type
leonlolly Jan 24, 2024
ba670c0
added get document base end point
cophilot Jan 24, 2024
611bbe0
fixed status endpoint
cophilot Jan 24, 2024
816498c
fix prod build
leonlolly Jan 24, 2024
3d810e1
Merge remote-tracking branch 'origin/main'
leonlolly Jan 24, 2024
5f40c73
added /document_base/attributes
cophilot Jan 24, 2024
546b5ed
fix prod build
leonlolly Jan 24, 2024
1ed3ff7
Merge remote-tracking branch 'origin/main'
leonlolly Jan 24, 2024
2984a80
add DocumentBaseLoad
leonlolly Jan 24, 2024
5ba38ba
adj task return
leonlolly Jan 24, 2024
3bc844c
added load document base endpoint
cophilot Jan 25, 2024
7d7363b
added todo
cophilot Jan 25, 2024
ba22f73
added new-stable-worklfow
cophilot Jan 27, 2024
7b1bbc3
added update docbase
cophilot Jan 27, 2024
da21a01
added fix_button()
RamzesKh Jan 29, 2024
f097066
feat(fix_button): add temporary rout fix_button
leonlolly Jan 30, 2024
1978242
feat(Emitable): add Nugget
leonlolly Jan 30, 2024
bb78abf
feat(Task): add DocumentBaseGetOrdertNuggets
leonlolly Jan 30, 2024
00dfc7c
feat(WannaDB_WebAPI): add get_ordert_nuggets
leonlolly Jan 30, 2024
7146a65
added match_feedback function
RamzesKh Feb 1, 2024
adcb259
Update match_button
RamzesKh Feb 4, 2024
2387b7e
reformat: typo
www Feb 5, 2024
6b12293
add(_MatchFeedback): proper typing
www Feb 5, 2024
20244de
add(tasks): add updates
www Feb 5, 2024
5983a06
add(match_feedback): adj parameter
www Feb 5, 2024
7d98209
formatting
www Feb 5, 2024
5cc2bfb
formatting
www Feb 5, 2024
52d4952
feat(interaction_callback_fn): now waits 3 min for match_feedback
www Feb 5, 2024
f1a5119
pre merge: add new feat from main to branch
www Feb 5, 2024
2ae7f88
pre merge: add new feat from main to branch
www Feb 5, 2024
a633885
pre merge: add new feat from main to branch
www Feb 5, 2024
8effa01
pre merge: add new feat from main to branch
www Feb 5, 2024
2999991
pre merge: add new feat from main to branch
www Feb 5, 2024
8263a5d
pre merge: add new feat from main to branch
www Feb 5, 2024
9a6e90e
pre merge: add new feat from main to branch
www Feb 5, 2024
2a7d265
fixed bug
RamzesKh Feb 6, 2024
8cccb33
added interactive-table-pop-endpoint and bug fixes for the interactiv…
cophilot Feb 7, 2024
952b32e
Merge branch 'main' into update_nugget
cophilot Feb 7, 2024
a6bb745
Merge pull request #7 from lw86ruwo/update_nugget
cophilot Feb 7, 2024
c8c854f
refactored sort_nuggets
cophilot Feb 8, 2024
a7a4614
bug fixes with ordered nuggets
cophilot Feb 8, 2024
aff6a69
added confirm nugget endpoint
cophilot Feb 8, 2024
f53ec7c
build(prod): adj the target for worker and flower
leonlolly Feb 8, 2024
3bc01d2
update
cophilot Feb 11, 2024
a598604
Merge branch 'main' into adding-confim-endpoint
cophilot Feb 11, 2024
8b486bf
Merge pull request #8 from lw86ruwo/adding-confim-endpoint
cophilot Feb 11, 2024
da78d80
fixed format bug
cophilot Feb 11, 2024
9d7a310
feat(_MatchFeedback): adjust type safety
leonlolly Feb 11, 2024
7da68e3
feat(DocumentBaseConfirmNugget): rm creation of doc base no interaction
leonlolly Feb 11, 2024
f91c041
feat(interaction_callback_fn): add status update
leonlolly Feb 11, 2024
b7112b6
feat(DocumentBaseConfirmNugget): fix id missmatch
leonlolly Feb 11, 2024
2c80a6e
reformat
leonlolly Feb 11, 2024
cde27f7
feat(_MatchFeedback): add None
leonlolly Feb 11, 2024
4eef8dd
feat(interaction_callback_fn): rm received feedback
leonlolly Feb 11, 2024
fe1d0d6
feat(nugget_exist): fix bug
leonlolly Feb 11, 2024
daf5cb7
feat(_MatchFeedback): add new types for canceling the matching
leonlolly Feb 11, 2024
07c8545
feat(DocumentBaseConfirmNugget): adjust types
leonlolly Feb 11, 2024
6ffe0a5
feat(interaction_callback_fn): add no-match-in-document t ostop poten…
leonlolly Feb 11, 2024
4275aba
type(_MatchFeedback): add NoMatchFeedback in function signatur
leonlolly Feb 11, 2024
82357e2
bug fixes
cophilot Feb 13, 2024
c58c697
type(Signals): add ordert nuggets to json
leonlolly Feb 13, 2024
a2fd805
fix(interaction_callback_fn): re-emit feedback_request_to_ui
leonlolly Feb 13, 2024
a9b8229
fix(interaction_callback_fn): re-emit feedback_request_to_ui
leonlolly Feb 13, 2024
3693dd4
feat: adjust typs for all data-structures
leonlolly Feb 13, 2024
334aff2
feat: adjust typs for all data-structures
leonlolly Feb 13, 2024
e2f220c
added endpoints
cophilot Feb 13, 2024
16e46cc
feat: adjust typs for all data-structures
leonlolly Feb 13, 2024
a4b8c4b
feat: adjust typs for all data-structures
leonlolly Feb 13, 2024
99f3091
fix: doc not5 serializable
leonlolly Feb 13, 2024
d51461d
debug print
leonlolly Feb 13, 2024
2209da1
bug fix
cophilot Feb 13, 2024
4e604cd
rm request.id
leonlolly Feb 13, 2024
4851aa3
bug(CreateDocumentBase): fix if doc are null
leonlolly Feb 14, 2024
36958fa
added rebuild script
cophilot Feb 15, 2024
daaa608
Update README.md
leonlolly Mar 6, 2024
a7e004c
added workflows
cophilot Mar 15, 2024
aee009a
add documentation
leonlolly Mar 17, 2024
c5a977d
add documentation
leonlolly Mar 17, 2024
e070618
add documentation
leonlolly Mar 17, 2024
85e3401
add documentation
leonlolly Mar 17, 2024
11a316f
adj README.md
leonlolly Mar 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
.gitignore
LICENSE.md
README.md
venv/
21 changes: 21 additions & 0 deletions .github/workflows/new_stable_version_manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Create New Stable Version (Manual)

on:
workflow_dispatch:

jobs:
create_pull_request:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: stable
base: main
title: Automated New Stable Version
body: This pull request was automatically created by the workflow and contains the latest stable version of the repository.
27 changes: 27 additions & 0 deletions .github/workflows/new_stable_version_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create New Stable Version (Push)

on:
push:
branches:
- main

jobs:
create_pull_request:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Check commit message for [stable]
id: check_commit_message
run: echo ::set-output name=contains_stable::$(if grep -q "\[stable\]" <<< "$(git log --format=%B -n 1)"; then echo true; else echo false; fi)

- name: Create Pull Request
if: steps.check_commit_message.outputs.contains_stable == 'true'
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: stable
base: main
title: Automated New Stable Version
body: This pull request was automatically created by the workflow and contains the latest stable version of the repository.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
/.pytest_cache/

/models/

postgres/__pycache__
flask_app/__pycache__
1_:memory:
116 changes: 116 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
[MASTER]

init-hook='import os, sys; sys.path.append(os.path.abspath(os.path.curdir))'
ignore=tests
load-plugins=
jobs=4
unsafe-load-any-extension=no
extension-pkg-whitelist=

[MESSAGES CONTROL]

# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence=

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
#enable=

# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=locally-disabled,too-few-public-methods,too-many-ancestors,useless-object-inheritance,useless-return,unnecessary-pass


[REPORTS]
output-format=text
reports=yes
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
#msg-template=

[LOGGING]
logging-modules=logging

[SIMILARITIES]
min-similarity-lines=8
ignore-comments=yes
ignore-imports=no

[FORMAT]
max-line-length=100
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
single-line-if-stmt=no

max-module-lines=1000
indent-string='\t'

[SPELLING]
spelling-dict=
spelling-ignore-words=
spelling-private-dict-file=
spelling-store-unknown-words=no


[VARIABLES]
init-import=no
dummy-variables-rgx=(_[a-zA-Z0-9_]*?$)
additional-builtins=
callbacks=cb_,_cb,handle_,get,post,put,patch,delete,options
redefining-builtins-modules=six.moves,future.builtins


[TYPECHECK]
ignore-mixin-members=yes
ignored-modules=flask_sqlalchemy,app.extensions.flask_sqlalchemy
ignored-classes=optparse.Values,thread._local,_thread._local
generated-members=fget,query,begin,add,merge,delete,commit,rollback
contextmanager-decorators=contextlib.contextmanager


[MISCELLANEOUS]
notes=FIXME,XXX,TODO


[BASIC]
good-names=i,j,k,ex,Run,_,log,api
bad-names=foo,bar,baz,toto,tutu,tata


[ELIF]
max-nested-blocks=5


[DESIGN]
max-args=5
ignored-argument-names=_.*
max-bool-expr=5


[IMPORTS]
deprecated-modules=optparse
import-graph=
ext-import-graph=
int-import-graph=
known-standard-library=
known-third-party=flask_restplus_patched
analyse-fallback-blocks=no


[CLASSES]
defining-attr-methods=__init__,__new__,setUp
valid-classmethod-first-arg=cls
valid-metaclass-classmethod-first-arg=mcs
exclude-protected=_asdict,_fields,_replace,_source,_make


[EXCEPTIONS]
overgeneral-exceptions=builtins.Exception
65 changes: 65 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
FROM python:3.9-slim-buster as build

ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1

RUN apt-get update \
# dependencies for building Python packages
&& apt-get install -y build-essential \
# psycopg2 dependencies
&& apt-get install -y libpq-dev \
# Additional dependencies
&& apt-get install -y telnet netcat \
# cleaning up unused files
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir /home/wannadb
WORKDIR /home/wannadb

# update Pip
RUN pip install --upgrade pip

# install torch
RUN pip install --use-pep517 torch==1.10.0

# Install dependencies
COPY core-requirements.txt core-requirements.txt
RUN pip install --use-pep517 -r core-requirements.txt
COPY backend-requirements.txt backend-requirements.txt
RUN pip install --use-pep517 -r backend-requirements.txt
##################################
## do not change above ##
## changes above cause ##
## long loading times ##
##################################

# Run tests
RUN pip install --use-pep517 pytest
#RUN pytest

FROM build as worker

FROM build as worker-prod

#copy the rest
COPY . .


FROM build as dev

#CMD [ "python", "app.py" ]

CMD ["mypy","--install-types", "--non-interactive"]

CMD ["flask", "--app", "app", "--debug", "run","--host","0.0.0.0", "--port", "8000" ]


FROM worker-prod as prod


RUN chmod +x wannadb_web/entrypoint.sh

# Define the entrypoint.sh
CMD ["sh","./wannadb_web/entrypoint.sh"]

42 changes: 35 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,33 +114,31 @@ series = {SIGMOD '22}

WannaDB is dually licensed under both AGPLv3 for the free usage by end users or the embedding in Open Source projects, and a commercial license for the integration in industrial projects and closed-source tool chains. More details can be found in [our licence agreement](LICENSE.md).


## Availability of Code & Datasets

We publish the source code four our system as discussed in the papers here. Additionally, we publish code to reproduce our experiments in a separate repository (coming soon).

Unfortunately, we cannot publish the datasets online due to copyright issues. We will send them via email on request to everyone interested and hope they can be of benefit for other research, too.


## Implementation details

The core of WannaDB (extraction and matching) was previously developed by us under the name [ASET (Ad-hoc Structured Exploration of Text Collections)](https://link.tuda.systems/aset). To better reflect the whole application cycle vision we present with this paper, we switchted the name to WannaDB.
The core of WannaDB (extraction and matching) was previously developed by us under the name [ASET (Ad-hoc Structured Exploration of Text Collections)](https://link.tuda.systems/aset). To better reflect the whole application cycle vision we present with this paper, we switchted the name to WannaDB.

### Repository structure

This repository is structured as follows:

* `wannadb`, `wannadb_parsql`, and `wannadb_ui` contain the implementation of ASET and the GUI.
* `scripts` contains helpers, like a stand-alone preprocessing script.
* `tests` contains pytest tests.
- `wannadb`, `wannadb_parsql`, and `wannadb_ui` contain the implementation of ASET and the GUI.
- `scripts` contains helpers, like a stand-alone preprocessing script.
- `tests` contains pytest tests.

### Architecture: Core

The core implementation of WannaDB is in the `wannadb` package and implemented as a library. The implementation allows you to construct pipelines of different data processors that work with the data model and may involve user feedback.

**Data model**

`data` contains WannaDB's data model. The entities are `InformationNugget`s, `Attribute`s, `Document`s, and the `DocumentBase`.
`data` contains WannaDB's data model. The entities are `InformationNugget`s, `Attribute`s, `Document`s, and the `DocumentBase`.

A nugget is an information piece obtained from a document. An attribute is a table column that gets
populated with information from the documents. A document is a textual document, and the document base is a collection of documents and provides facilities for `BSON` serialization, consistency checks, and data access.
Expand Down Expand Up @@ -175,3 +173,33 @@ The `Statistics` object allows you to easily record information during runtime.
### Architecture: GUI

The GUI implementation can be found in the `wannadb_ui` package. `wannadb_api.py` provides an asynchronous API for the `wannadb` library using PyQt's slots and signals mechanism. `main_window.py`, `document_base.py`, and `interactive_window.py` contain different parts of the user interface, and `common.py` contains base classes for some recurring user interface elements.

---

# Start the Web-Backend docker build

to build/start the production

```
docker compose -f "docker-compose-prod.yaml" build
docker compose -f "docker-compose-prod.yaml" up
```

for developers use

```
docker compose build
docker compose up
```

the flask and other services start automaticly.
for more information click [here](https://github.com/lw86ruwo/wannadbBackend/blob/main/WEBSERVER_STRUCTURE.md)

so see all the routes and the structure of the webserver click [here](https://github.com/lw86ruwo/wannadbBackend/blob/main/ROUTES.md)

you can use `code` to attach the container and then work in docker

git only works when you install gh and make gh auth
then you can work as usual

a docker rebuild is only necessary if dependencies have changed
Loading