Skip to content

Commit

Permalink
Merge branch 'integration' into LF-4601-Table-header-needs-to-be-lowe…
Browse files Browse the repository at this point in the history
…red-or-KPI-higher-n-z-index
  • Loading branch information
gursimran-singh committed Jan 7, 2025
2 parents 6767b74 + 5951cec commit 779e4c4
Show file tree
Hide file tree
Showing 10 changed files with 4,575 additions and 3,680 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint_translation_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/[email protected]
with:
version: 6.26.1
version: latest

- name: Install pnpm dependencies
run: pnpm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/webapp_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 6.26.1
version: latest
- name: Install dependencies
run: pnpm install
- name: Run unit tests
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litefarm-api",
"version": "3.7.1",
"version": "3.7.3",
"description": "LiteFarm API server",
"main": "./api/src/server.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if (process.env.SENTRY_DSN && environment !== 'development') {
// Automatically instrument Node.js libraries and frameworks
...Sentry.autoDiscoverNodePerformanceMonitoringIntegrations(),
],
release: '3.7.1',
release: '3.7.3',
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litefarm-webapp",
"version": "3.7.1",
"version": "3.7.3",
"description": "LiteFarm Web application",
"type": "module",
"scripts": {
Expand Down
8,233 changes: 4,564 additions & 3,669 deletions packages/webapp/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/webapp/src/containers/Task/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ export function* createTaskSaga({ payload }) {
const header = getHeader(user_id, farm_id);
const isCustomTask = !!task_farm_id;
const isHarvest = task_translation_key === 'HARVEST_TASK';
const endpoint = getEndpoint(isCustomTask, task_translation_key);
const endpoint = getEndpoint(isCustomTask, task_translation_key, true);
try {
const managementPlanWithCurrentLocationEntities = yield select(
managementPlanWithCurrentLocationEntitiesSelector,
Expand Down
4 changes: 2 additions & 2 deletions packages/webapp/src/containers/Task/sagaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
import { parseInventoryId } from '../../util/animal';
import { getPostTaskBody } from './saga';

export const getEndpoint = (isCustomTask, taskTranslationKey) => {
export const getEndpoint = (isCustomTask, taskTranslationKey, isCreatingTask = false) => {
if (isCustomTask) {
return 'custom_task';
}
const endpoints = {
HARVEST_TASK: 'harvest_tasks',
HARVEST_TASK: isCreatingTask ? 'harvest_tasks' : 'harvest_task',
MOVEMENT_TASK: 'animal_movement_task',
};
return endpoints[taskTranslationKey] || taskTranslationKey.toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if (import.meta.env.VITE_SENTRY_DSN) {
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
release: '3.7.1',
release: '3.7.3',
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
Expand Down

0 comments on commit 779e4c4

Please sign in to comment.