ostis-ai / sc-web Goto Github PK
View Code? Open in Web Editor NEWWeb oriented sc-models interpreter
Web oriented sc-models interpreter
Describe the bug
After edition in SCg-code tab we have not equal sc-construction in SCn-code and SCg-code tabs
To Reproduce
Steps to reproduce the behavior:
Expected behavior
New sc-construction are present in the semantic neighborhood of start sc-element
Screenshots
ew sc-construction aren't present in the semantic neighborhood of start sc-element
Desktop (please complete the following information):
Is your feature request related to a problem? Please describe.
Please add documentation for contributors.
Describe the solution you'd like
File CONTRIBUTING.md like in ostis-ai/sc-machine.
Describe the bug
The temporal arc is not shown when asking the semantic neighborhood of a dialogue or message in the example. It is visible only if you ask the access arc from the dialogue to the message
To Reproduce
Steps to reproduce the behavior:
a ~> b
with agent or using scg-editora
or b
Expected behavior
See the temporal arc
Проверка файла formats.sh: Проверьте, существует ли файл formats.sh перед его источником с помощью [ -f "${CURRENT_DIR}/formats.sh" ], чтобы избежать ошибки, если файл отсутствует или не доступен для чтения.
Проверка переменной ${SC_WEB_PATH}: Проверьте, установлена ли переменная ${SC_WEB_PATH} перед источником файла set_vars.sh с помощью [ -z "${SC_WEB_PATH}" ]. Это позволит избежать повторной установки переменных, если они уже были заданы.
Обработка ошибок: Добавьте обработку ошибок и выход из скрипта в случае возникновения ошибок. Для этого можно использовать set -eo pipefail, чтобы скрипт автоматически останавливался при возникновении ошибок.
Комментарии: Добавьте комментарии к коду, чтобы пояснить его функциональность и логику. Это поможет другим разработчикам (и вам самим в будущем) лучше понять код.
Логирование: Добавьте логирование, чтобы отслеживать процесс выполнения скрипта и сообщать о его прогрессе или возможных проблемах.
Версия Node.js: Убедитесь, что у вас установлена правильная версия Node.js для сборки проекта sc-web.
Describe the bug
No shebang in install.sh script file.
Expected behavior
Add shebang to install.sh script file like in install_deps_ubuntu.sh or like in run_scweb.sh
Describe the bug
The only way to make sc-web work again after it lost connection to sc-server
is to restart app.py
, connections loss causes an UncaughtException:
[E 220818 11:16:16 web:1798] Uncaught exception GET /api/user/ (172.17.0.1)
HTTPServerRequest(protocol='http', host='localhost:8000', method='GET', uri='/api/user/', version='HTTP/1.1', remote_ip='172.17.0.1')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tornado/web.py", line 1711, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/sc-web/server/decorators.py", line 28, in wrapper
return func(*argv)
File "/sc-web/server/handlers/api.py", line 389, in get
user_addr = sc_session.get_sc_addr()
File "/sc-web/server/decorators.py", line 28, in wrapper
return func(*argv)
File "/sc-web/server/handlers/api_logic.py", line 759, in get_sc_addr
self.sc_addr = self._session_get_sc_addr()
File "/sc-web/server/handlers/api_logic.py", line 878, in _session_get_sc_addr
return self._find_user_by_system_idtf("session::" + str(self.session_key))
File "/sc-web/server/handlers/api_logic.py", line 856, in _find_user_by_system_idtf
value = client.resolve_keynodes(ScIdtfResolveParams(idtf=idtf, type=None))[0]
File "/usr/local/lib/python3.8/dist-packages/sc_client/client/_api.py", line 67, in resolve_keynodes
return session.execute(common.ClientCommand.KEYNODES, *params)
File "/usr/local/lib/python3.8/dist-packages/sc_client/session.py", line 150, in execute
return _ScClientSession.executor.run(request_type, *args)
File "/usr/local/lib/python3.8/dist-packages/sc_client/client/_executor.py", line 29, in run
response = session.send_message(self._executor_mapper.get(command_type), payload)
File "/usr/local/lib/python3.8/dist-packages/sc_client/session.py", line 121, in send_message
raise BrokenPipeError
BrokenPipeError
[E 220818 11:16:16 web:2271] 500 GET /api/user/ (172.17.0.1) 1.16ms
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In case the connection to sc-server was lost there should be an attempt to restore it, transparently to the user side. In other words, we should handle the BrokenPipe exception.
Desktop (please complete the following information):
Describe the bug
When in expert mode ui displays wrong identifiers
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Identifiers remain in English
Desktop (please complete the following information):
По моему мнению, окна меню можно было бы улучшить. В большинстве случаев для перехода в нужное место нам нужно перейти из раздела в раздел. И это удобно, однако не всегда. Например, когда в одном разделе есть только один пукт. Мы хотим перейти в этот раздел, но мы не можем по нему кликнуть. Для пояснения моих слов прикрепляю картинку ниже.
В данном случаем мы делаем один лишний клик, для того, чтобы перейти туда, куда нам нужно.
Describe the bug
File client/js/Core/main.js
contains a hardcoded link to sc-server. It makes it impossible for the frontend to connect to sc-server
if it is not deployed on the same machine (most server-side projects fall under this category)
To Reproduce
Steps to reproduce the behavior:
sc-server
and run itsc-web
's app.py
with the changed server_port
flagExpected behavior
We should be able to change sc-server
url at either build time or runtime of the frontend.
Additional context
We could use https://gruntjs.com/api/grunt.template
to inject the link at build time and dotenv
js package to get it from the .env
file.
This may be undesirable for the sc-web Docker container, because it doesn't rebuild sc-web on launch. We could leave a template in the static directory and construct a final js file with the link at runtime using app.py
and additional --public_url
flag (or something along those lines), that'd be a better solution overall
Describe the bug
If there is a reflexive set in kb then scg view contains triangle not attached to anything
To Reproduce
Steps to reproduce the behavior:
some_reflexive_set -> some_reflexive_set;;
some_reflexive_set
via search, switch to scg-code and observe triangleExpected behavior
it'll be good to see reflexive edge
Desktop (please complete the following information):
Describe the bug
There is a duplication of possible questions to the entity.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
List of questions without duplication
Desktop (please complete the following information):
Version of sc-web: f67a8c4e
Describe the bug
The code in question is this line
To Reproduce
Try to connect to sc-server on a separate host that uses https and/or requires accessing a subpath
Expected behavior
I should be able to either fully rewrite a server URL which is used by the backend or control the subpath and protocol using separate flags.
Describe the bug
Lines 78 to 79 in 223e9d2
The lang_addr
variable is declared only in case of lang_arg
's existence, but is referenced later regardless.
Lines 123 to 124 in 223e9d2
To Reproduce
Steps to reproduce the behavior:
/api/question/answer/translate/
with no lang
parameter passed.Expected behavior
Either a success response or a response indicating that "lang is a required parameter" or "some required parameters are missing".
Describe the bug
The layout of the search hint window breaks after request to the element with large semantic neighborhood
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
Version of sc-web: 79e434e
Describe the bug
It is not possible to add a node existing in the knowledge base to a structure in the scg-mode. Instead, new nodes are created.
To Reproduce
Steps to reproduce the behavior:
Go to main page.
Expected behavior
The selected node is added to the structure.
Actual behavior
The selection button does not work, you cannot add a node from the knowledge base
Desktop (please complete the following information):
Version of sc-web: f67a8c4e
There is a timely solution for number of triplets limitation, we need right solution
Is your feature request related to a problem? Please describe.
When click to reload appear a start page, it will be great if web can remembers user history
Describe the bug
If element is created and connected to structure with common arc then it will be displayed as if it is connected using access edge
To Reproduce
Steps to reproduce the behavior:
test_structure = [*
test_source => nrel_test_relation: test_target;;
*];;
sc_node_norole_relation -> nrel_test_relation;;
test_structure -> test_source;;
test_structure
and open it in two windowsExpected behavior
Only elements connected via access edge are added to structure view.
Desktop (please complete the following information):
Describe the bug
There is no npm and nodejs installation in scripts, because of that sc-web work incorrectly. Maybe #30 connected with this problem.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Normal working sc-web
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Describe the bug
We need to create all sc-web components from knowledge base. Now there are several hardcoded elements: search panel, history panel, expert mode button, language switch button etc.
Expert mode button in the current state includes ALL the panel with other elements.
Expected behavior
sc-web is only an interpreter of interface model represented in sc-code
Desktop (please complete the following information):
Describe the bug
404 error when sc-web starts. It is not crushing the system but spamming 404
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors in console when sc-web is running
Desktop (please complete the following information):
Describe the bug
If we have an arc that goes from node A to node B and specify that it's some kind of a relation (e.g. role relation) and make this relation temporal, the relation will not be displayed in SCn. The relations are displayed if they're permanent.
Such relations may not be displayed in SCg either. Here's a screenshot of the same construction.
Expected behavior
Temporal relations are displayed in SCn and SCg.
Describe the bug
If structure has more then one access edge into any element and one of those edges is removed then this element is removed from scg view but it appears after page reload.
To Reproduce
Steps to reproduce the behavior:
test_structure = [*
test_source => nrel_test_relation: test_target;;
*];;
sc_node_norole_relation -> nrel_test_relation;;
test_structure -> test_source;;
test_structure
and open it two timestest_structure
and test_source
(second image)test_source
is removed from scg view (third image)Expected behavior
Elements are not deleted from structure view until all access edges are removed between structure and element
Desktop (please complete the following information):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.