Skip to content

Commit

Permalink
Merge pull request AOT-Technologies#1915 from shuhaib-aot/master-to-d…
Browse files Browse the repository at this point in the history
…evelop-5.3.1

Master  5.3.1 to develop
  • Loading branch information
shuhaib-aot authored Mar 4, 2024
2 parents 961a4ba + b58b49d commit 03f869b
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 33 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/forms-flow-data-analysis-api-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ jobs:
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

- name: Upload Snyk report as sarif 📦
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
#####
# - name: Set up AWS CLI
# uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -124,4 +120,4 @@ jobs:
# run: aws eks update-kubeconfig --region ca-central-1 --name formsflow-eks-qa
# - name: Deploy to eks
# run: |
# kubectl -n dev patch deployment forms-flow-data-analysis-api -p '{"spec":{"template":{"spec":{"containers":[{"name":"forms-flow-data-analysis-api","image":"docker.io/formsflow/forms-flow-data-analysis-api:${{ env.VERSION }}"}]}}}}'
# kubectl -n dev patch deployment forms-flow-data-analysis-api -p '{"spec":{"template":{"spec":{"containers":[{"name":"forms-flow-data-analysis-api","image":"docker.io/formsflow/forms-flow-data-analysis-api:${{ env.VERSION }}"}]}}}}'
2 changes: 1 addition & 1 deletion .github/workflows/forms-flow-data-analysis-api-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
python-version: [3.11.7]
python-version: [3.11.8]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/forms-flow-documents-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

strategy:
matrix:
python-version: [3.12.1]
python-version: [3.12.2]

steps:
- uses: actions/checkout@v2
Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@

Mark items as `Added`, `Changed`, `Fixed`, `Modified`, `Removed`, `Untested Features`, `Upcoming Features`, `Known Issues`

## 5.3.1 - 2024-02-14

`Fixed`

**forms-flow-web**

* Fixed task page infinity loading issue
* Fixed task list filter API breaking on initial time
* Fixed tenant based all tasks not showing issue

**forms-flow-documents**

* Fixed security vulnerabilities

**forms-flow-data-analysis-api**

* Fixed security vulnerabilities

`Modified`

**forms-flow-api**

* Changes have been made to the Roles and Groups endpoint to accommodate modifications related to subgroups in Keycloak 23.

## 5.3.0 - 2023-11-24

`Added`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![FormsFlow BPM CI](https://github.com/AOT-Technologies/forms-flow-ai/actions/workflows/forms-flow-bpm-ci.yml/badge.svg)](https://github.com/AOT-Technologies/forms-flow-ai/actions)
[![Join the chat at https://gitter.im/forms-flow-ai/community](https://badges.gitter.im/forms-flow-ai/community.svg)](https://gitter.im/forms-flow-ai/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join the chat at https://stackoverflow.com/questions/tagged/formsflow.ai](https://img.shields.io/badge/ask%20-on%20%20stackoverflow-F47F24)](https://stackoverflow.com/questions/tagged/formsflow.ai?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
<img src="https://img.shields.io/badge/release-v5.3.0-blue"/>
<img src="https://img.shields.io/badge/release-v5.3.1-blue"/>
<img src="https://img.shields.io/badge/LICENSE-Apache%202-green"/>

[**formsflow.ai**](https://formsflow.ai/) is a Free, Open-Source, Low Code Development Platform for rapidly building powerful business applications. [**formsflow.ai**](https://formsflow.ai/) combines leading Open-Source applications including [form.io](https://form.io) forms, Camunda’s workflow engine, Keycloak’s security, and Redash’s data analytics into a seamless, integrated platform.
Expand Down
2 changes: 1 addition & 1 deletion forms-flow-api/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = formsflow_api
version = 5.3.0
version = 5.3.1
author = aot-technologies
classifiers =
Development Status :: Production
Expand Down
14 changes: 13 additions & 1 deletion forms-flow-api/src/formsflow_api/services/external/keycloak.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ def get_analytics_groups(self, page_no: int, limit: int):

for group in group_list_response:
if group["name"] == KEYCLOAK_DASHBOARD_BASE_GROUP:
dashboard_group_list = list(group["subGroups"])
if group.get("subGroupCount", 0) > 0:
dashboard_group_list = self.get_subgroups(group["id"])
else:
dashboard_group_list = list(group["subGroups"])
return dashboard_group_list

def get_analytics_roles(self, page_no: int, limit: int):
Expand Down Expand Up @@ -166,6 +169,15 @@ def get_groups(self):
current_app.logger.debug("Groups %s", group_list_response)
return group_list_response

def get_subgroups(self, group_id):
"""Return sub groups."""
current_app.logger.debug(f"Getting subgroups for groupID: {group_id}")
group_list_response = self.get_request(
url_path=f"groups/{group_id}/children?briefRepresentation=false"
)
current_app.logger.debug("Sub Groups %s", group_list_response)
return group_list_response

def get_roles(self, search: str = ""):
"""Return roles."""
current_app.logger.debug("Getting roles")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ def add_description(self, data: Dict):
data.pop("description", None)
return data

def sub_groups(self, group_id, response):
"""Fetch subgroups of the group if subGroupCount greater than 0."""
sub_group = self.client.get_subgroups(group_id)
for group in sub_group:
group = self.format_response(group)
response.append(group)
if group.get("subGroupCount", 0) > 0:
self.sub_groups(group.get("id"), response)
return response

def flat(self, data, response):
"""Flatten response to single list of dictionary.
Expand All @@ -139,10 +149,11 @@ def flat(self, data, response):
for group in data:
subgroups = group.pop("subGroups", data)
group = self.format_response(group)
response.append(group)
if subgroups == []:
response.append(group)
if group.get("subGroupCount", 0) > 0:
response = self.sub_groups(group.get("id"), response)
elif subgroups != []:
response.append(group)
self.flat(subgroups, response)
return response

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NumPy==1.24.1
Transformers==4.33.2
Transformers==4.36.2
torch==1.13.1
scikit-learn==1.2.0
datasets==2.8.0
Expand Down
6 changes: 3 additions & 3 deletions forms-flow-data-analysis-api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ flask-jwt-oidc==0.3.0
flask-restx==1.1.0
fsspec==2023.9.1
gunicorn==21.2.0
huggingface-hub==0.17.2
huggingface-hub==0.19.4
idna==3.4
itsdangerous==2.1.2
joblib==1.3.2
Expand Down Expand Up @@ -57,10 +57,10 @@ spacy==2.3.9
srsly==1.0.7
sympy==1.12
thinc==7.4.6
tokenizers==0.13.3
tokenizers==0.15.2
torch==2.0.1
tqdm==4.66.1
transformers==4.33.2
transformers==4.36.2
typing_extensions==4.8.0
urllib3==2.0.7
wasabi==0.10.1
2 changes: 1 addition & 1 deletion forms-flow-documents/Dockerfile-ARM64
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Author: Kurian Benoy
FROM python:3.9-slim-buster
FROM python:3.10.13-slim-bullseye

WORKDIR /forms-flow-documents/app

Expand Down
10 changes: 5 additions & 5 deletions forms-flow-web-root-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ is mentioned on the [link](../forms-flow-idm/keycloak/README.md#create-forms-flo
Variable name | Meaning | Possible values | Default value |
--- | --- |----------| ---
`MF_FORMSFLOW_WEB_URL`:triangular_flag_on_post:| For running locally/ if have custom changes | `//forms-flow-microfrontends.aot-technologies.com/[email protected].0/forms-flow-web.gz.js` <br> <br> For custom changes: `http://{your-ip-address}:3004/forms-flow-web.js` | `//forms-flow-microfrontends.aot-technologies.com/[email protected].0/forms-flow-nav.gz.js`
`MF_FORMSFLOW_NAV_UR`:triangular_flag_on_post:|For custom implementation of Navbar component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-nav)| |`//forms-flow-microfrontends.aot-technologies.com/[email protected].0/forms-flow-nav.gz.js`
`MF_FORMSFLOW_SERVICE_URL`:triangular_flag_on_post:|For custom implementation of Service component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-service)| |`//forms-flow-microfrontends.aot-technologies.com/[email protected].0/forms-flow-service.gz.js`
`MF_FORMSFLOW_ADMIN_URL`:triangular_flag_on_post:|For custom implementation of Admin component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-admin)| |`//forms-flow-microfrontends.aot-technologies.com/[email protected].0/forms-flow-admin.gz.js`
`MF_FORMSFLOW_THEME_URL`:triangular_flag_on_post:| For custom implementation of Theme component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-theme) | | `//forms-flow-microfrontends.aot-technologies.com/[email protected].0/forms-flow-theme.gz.js`
`MF_FORMSFLOW_WEB_URL`:triangular_flag_on_post:| For running locally/ if have custom changes | `//forms-flow-microfrontends.aot-technologies.com/[email protected].1/forms-flow-web.gz.js` <br> <br> For custom changes: `http://{your-ip-address}:3004/forms-flow-web.js` | `//forms-flow-microfrontends.aot-technologies.com/[email protected].1/forms-flow-nav.gz.js`
`MF_FORMSFLOW_NAV_UR`:triangular_flag_on_post:|For custom implementation of Navbar component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-nav)| |`//forms-flow-microfrontends.aot-technologies.com/[email protected].1/forms-flow-nav.gz.js`
`MF_FORMSFLOW_SERVICE_URL`:triangular_flag_on_post:|For custom implementation of Service component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-service)| |`//forms-flow-microfrontends.aot-technologies.com/[email protected].1/forms-flow-service.gz.js`
`MF_FORMSFLOW_ADMIN_URL`:triangular_flag_on_post:|For custom implementation of Admin component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-admin)| |`//forms-flow-microfrontends.aot-technologies.com/[email protected].1/forms-flow-admin.gz.js`
`MF_FORMSFLOW_THEME_URL`:triangular_flag_on_post:| For custom implementation of Theme component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-theme) | | `//forms-flow-microfrontends.aot-technologies.com/[email protected].1/forms-flow-theme.gz.js`
`NODE_ENV`| Define project level configuration | `development, test, production` | `production`
`FORMIO_DEFAULT_PROJECT_URL`:triangular_flag_on_post:|The URL of the form.io server| |`http://{your-ip-address}:3001`
`KEYCLOAK_WEB_CLIENTID`|Your Keycloak Client ID within the realm| eg. forms-flow-web | `forms-flow-web`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,12 @@ const ServiceTaskListView = React.memo((props) => {
}
}, [dispatch, reqData]);

const getTaskDetails = (taskId) => {
if (taskId !== bpmTaskId) {


const getTaskDetails = (taskId) => {
dispatch(push(`${redirectUrl.current}task/${taskId}`));
}
};
};

const handleViewDetails = (taskId) => {
getTaskDetails(taskId);
};
const handlePageChange = (pageNumber) => {
dispatch(setBPMTaskListActivePage(pageNumber));
dispatch(setBPMTaskLoader(true));
Expand Down Expand Up @@ -130,7 +127,7 @@ const ServiceTaskListView = React.memo((props) => {
<div>
<h6>
<u
onClick={() => handleViewDetails(task.id)}
onClick={() => getTaskDetails(task.id)}
className="fw-normal handle-view-details"
>{t("View Details")}</u>
</h6>
Expand Down
6 changes: 3 additions & 3 deletions jobs/sentiment-analysis/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ flask-jwt-oidc==0.3.0
flask-restx==1.1.0
fsspec==2023.6.0
gunicorn==20.1.0
huggingface-hub==0.15.1
huggingface-hub==0.19.4
idna==3.4
itsdangerous==2.1.2
joblib==1.3.0
Expand Down Expand Up @@ -58,10 +58,10 @@ spacy==2.3.9
srsly==1.0.6
sympy==1.12
thinc==7.4.6
tokenizers==0.13.3
tokenizers===0.15.2
torch==2.0.1
tqdm==4.65.0
transformers==4.30.2
transformers==4.36.2
typing_extensions==4.6.3
urllib3==2.0.7
wasabi==0.10.1

0 comments on commit 03f869b

Please sign in to comment.