Skip to content

Commit

Permalink
Merge pull request #1219 from openworld-community/release/2024-06-26
Browse files Browse the repository at this point in the history
Demo/2024-06-26
  • Loading branch information
il12 authored Jun 26, 2024
2 parents edb54fb + 5e51946 commit 62bdacc
Show file tree
Hide file tree
Showing 39 changed files with 1,035 additions and 724 deletions.
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/defect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Defect
about: Ошибка, найденная в задаче текущего спринте
title: ''
labels: 'defect'
assignees: ''

---

### Критичность
Укажите уровень критичности

### Описание
Опишите баг

### Ожидаемое поведение
Опишите ожидаемое поведение

### Условия воспроизведение
- Device [e.g. iPhone6, Desktop]
- OS: [e.g. iOS, Windows]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

### Шаги воспроизведения
Пошаговое описание условий возникновения бага

### Ссылка на родительскую задачу
[!IMPORTANT] Ссылка на родительскую задачу

### Скриншоты* (необязательное)
- **Ссылки на скриншоты или картинки**

### Дополнительная информация* (необязательное)
Добавьте информацию о баге которую вы считаете важной
45 changes: 0 additions & 45 deletions .github/ISSUE_TEMPLATE/development-task.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/incident.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Incident
about: Ошибка, найденная в проде или на демо
title: ''
labels: 'incident'
assignees: ''

---

### Критичность
Укажите уровень критичности

### Описание
Опишите баг

### Ожидаемое поведение
Опишите ожидаемое поведение

### Условия воспроизведение
- Среда [e.g. Prod, Demo]
- Device [e.g. iPhone6, Desktop]
- OS: [e.g. iOS, Windows]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

### Шаги воспроизведения
Пошаговое описание условий возникновения бага

### Релиз
В каком релизе был добавлен функционал, в котором возникла ошибка

### Ссылка на родительскую задачу
[!IMPORTANT] Ссылка на родительскую задачу

### Скриншоты* (необязательное)
- **Ссылки на скриншоты или картинки**

### Дополнительная информация* (необязательное)
Добавьте информацию о баге которую вы считаете важной
21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/new_task.md

This file was deleted.

23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Task
about: Задача, которую команда разработки может сделать за время спринта
title: ''
labels: ''
assignees: ''

---

### Описание
Опишите задачу

### Критерии приёмки
- *Критерии приёмки*

### Дополнительная информация
Добавьте информацию о задаче которую вы считаете важной

### Ссылки на баги, относящиеся к этой задаче
- [!CAUTION] *Ссылка на задачу-баг*.

### Оценка
Оцените задачу
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/user_story.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: User story
about: Короткая формулировка намерения пользователя и того, что продукт должен сделать для него
title: 'Я, как {роль}, хочу {требование}'
labels: 'User story'
assignees: ''

---

### Описание
Опишите User Story

### Критерии приёмки
- *Критерии приёмки*

### Дополнительная информация
Добавьте информацию о User Story которую вы считаете важной

### Ссылки на дочерние задачи и задачи-баги
- [!NOTE] *Дочерняя задача*

### Оценка
Оцените User Story в сторипоинтах
2 changes: 1 addition & 1 deletion .github/workflows/code-review-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- name: Install root modules
run: npm install
Expand Down
6 changes: 5 additions & 1 deletion backend/src/config/vars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export const vars = {
googledocs: {
peredelanoConfSheetId: process.env.PEREDELANOCONF_GOOGLEDOC || ''
},
googleauth: process.env.VITE_GOOGLE_OAUTH_KEY || '123'
googleauth: process.env.VITE_GOOGLE_OAUTH_KEY || '123',
googleAnalytics: {
apiSecret: process.env.GA_API_SECRET || '',
measurementId: process.env.GA_MEASUREMENT_ID || ''
}
},
localization: {
url: process.env.LOCALIZATION_URL || 'http://localization:5000'
Expand Down
32 changes: 32 additions & 0 deletions backend/src/externalServices/googleanalytics.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import axios from 'axios';
import { vars } from '../config/vars';

export type ISendGAEventParams = {
client_id: string;
events: [
{
name: string;
params: Record<string, any>;
}
];
};

export const sendGAEvent = (data: ISendGAEventParams) => {
const stringifiedData = JSON.stringify({
client_id: data.client_id,
events: data.events
});
axios
.post(
`https://www.google-analytics.com/mp/collect?measurement_id=${vars.apiKeys.googleAnalytics.measurementId}&api_secret=${vars.apiKeys.googleAnalytics.apiSecret}`,
stringifiedData
)
.catch(() => {
// eslint-disable-next-line no-console
console.log(
`Events ${data.events.map((event) => event.name).join(',')} from client ${
data.client_id
} was not sent to Google Analytics`
);
});
};
8 changes: 4 additions & 4 deletions backend/src/rest/v1/auth/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@ import { verifyGoogleToken } from '../../../externalServices/googleauth';
export const telegramLogin: ITelegramHandler = async (request, reply) => {
const data = request.query;
const token = await userController.addTGUser(data);
reply.redirect(302, `${vars.frontend_url}/postauth/${token}`);
reply.redirect(302, `${vars.frontend_url}/postauth/${token}?method=telegram`);
};

export const googleLogin: IGoogleHandler = async (request, reply) => {
const data = request.body;
const googledata = await verifyGoogleToken(data.credential);
const token = await userController.addGoogleUser(googledata);
reply.redirect(302, `${vars.frontend_url}/postauth/${token}`);
reply.redirect(302, `${vars.frontend_url}/postauth/${token}?method=google`);
};

export const localSignup: ILocalSignupHandler = async (request) => {
const data = request.body;
const token = await userController.addLocalUser(data);
return `${vars.frontend_url}/postauth/${token}`;
return `${vars.frontend_url}/postauth/${token}?method=local_signup`;
};

export const localAuth: ILocalAuthHandler = async (request) => {
const data = request.body;
const token = await userController.authLocalUser(data);
return `${vars.frontend_url}/postauth/${token}`;
return `${vars.frontend_url}/postauth/${token}?method=local_auth`;
};

export const signout: ISignoutHandler = async (request) => {
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ services:
- GITHUB_PARSING_TOKEN
- PEREDELANOCONF_GOOGLEDOC
- VITE_GOOGLE_OAUTH_KEY
- GA_API_SECRET
- GA_MEASUREMENT_ID
networks:
- traefikpublic
ports:
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ services:
- LOCALIZATION_API_KEY
- GITHUB_PARSING_TOKEN
- PEREDELANOCONF_GOOGLEDOC
- VITE_GOOGLE_OAUTH_KEY
- VITE_GOOGLE_OAUTH_KEY]
- GA_API_SECRET
- GA_MEASUREMENT_ID
networks:
- traefikpublic
ports:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ services:
- GITHUB_PARSING_TOKEN
- PEREDELANOCONF_GOOGLEDOC
- VITE_GOOGLE_OAUTH_KEY
- GA_API_SECRET
- GA_MEASUREMENT_ID
networks:
- traefikpublic
ports:
Expand Down
Binary file removed frontend/assets/img/support/help.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/components/cooperation/Advantage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { advantage } from './items';
&__list {
display: flex;
flex-direction: column;
gap: 50px;
gap: 51px;
}
}
</style>
Loading

0 comments on commit 62bdacc

Please sign in to comment.