Skip to content

Commit

Permalink
Merge pull request #4438 from voxel51/merge/v0.24.0-to-main
Browse files Browse the repository at this point in the history
Merge/v0.24.0 to main
  • Loading branch information
findtopher authored May 29, 2024
2 parents 2b7619d + bbfd217 commit 5bf793e
Show file tree
Hide file tree
Showing 777 changed files with 26,841 additions and 11,340 deletions.
37 changes: 37 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: "en"
early_access: false
reviews:
request_changes_workflow: false
high_level_summary: true
poem: true
review_status: true
collapse_walkthrough: false
path_filters:
- "!**/.xml"
- "!**/__generated__/**"
- "!**/generated/**"
- "!**/*.json"
- "!**/*.svg"
- "!**/*.png"
- "!**/*.jpg"
- "!**/*.gif"
- "!**/*.lock"
path_instructions:
- path: "**/*.{ts,tsx}"
instructions:
"Review the Typescript and React code for conformity with best practices in React, Recoil,
Graphql, and Typescript. Highlight any deviations."
auto_review:
enabled: true
ignore_title_keywords:
- "WIP"
- "DO NOT MERGE"
- "DRAFT"
drafts: false
base_branches:
- "develop"
- "main"
- "release/.*"
- "feat/.*"
chat:
auto_reply: true
12 changes: 6 additions & 6 deletions .github/workflows/build-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
python-version: 3.9
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install --upgrade pip setuptools wheel build
- name: Set environment
env:
RELEASE_TAG: ${{ github.ref }}
Expand All @@ -43,27 +43,27 @@ jobs:
if: ${{ matrix.platform == 'darwin-arm64' }}
run: |
cd package/db
FODB_MACHINE=arm64 FODB_SYSTEM=Darwin python setup.py bdist_wheel
FODB_MACHINE=arm64 FODB_SYSTEM=Darwin python -Im build
- name: Build Darwin x86_64 wheel
if: ${{ matrix.platform == 'darwin-x86_64' }}
run: |
cd package/db
FODB_MACHINE=x86_64 FODB_SYSTEM=Darwin python setup.py bdist_wheel
FODB_MACHINE=x86_64 FODB_SYSTEM=Darwin python -Im build
- name: Build Windows 32 wheel
if: ${{ matrix.platform == 'windows-32' }}
run: |
cd package/db
FODB_MACHINE=32 FODB_SYSTEM=Windows python setup.py bdist_wheel
FODB_MACHINE=32 FODB_SYSTEM=Windows python -Im build
- name: Build Windows x86_64 wheel
if: ${{ matrix.platform == 'windows-x86_64' }}
run: |
cd package/db
FODB_MACHINE=x86_64 FODB_SYSTEM=Windows python setup.py bdist_wheel
FODB_MACHINE=x86_64 FODB_SYSTEM=Windows python -Im build
- name: Build sdist
if: ${{ matrix.platform == 'sdist' }}
run: |
cd package/db
python setup.py sdist
python -Im build --sdist
- name: Upload
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
python-version: 3.8
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install --upgrade pip setuptools wheel build
- name: Cache Node Modules
id: node-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
fi
- name: Build wheel
working-directory: package/desktop
run: python setup.py bdist_wheel --plat-name ${{ matrix.platform }}
run: RELEASE_DIR=${PWD}/../../app/packages/desktop/release python -Im build -C="--build-option=--plat-name=${{ matrix.platform }}"
- name: Upload wheel
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:
pull_request:
branches:
- develop
- feat/*
- main
- rel-*
- release-*
Expand Down Expand Up @@ -58,12 +59,12 @@ jobs:
python-version: 3.8
- name: Install pip dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install --upgrade pip setuptools wheel build
- name: Install ETA from source
run: |
git clone https://github.com/voxel51/eta eta --depth 1 --branch develop
cd eta
python setup.py bdist_wheel
python -Im build
pip install ./dist/*.whl
- name: Install
run: |
Expand All @@ -72,6 +73,7 @@ jobs:
pip install -r fiftyone-teams/requirements/dev.txt
pip install fiftyone-brain fiftyone-db
pip install pycocotools tensorflow torch torchvision
pip install typing_extensions==4.10.0
pip install .
- name: Cache Node Modules
id: node-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
python-version: 3.9
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install --upgrade pip setuptools wheel build
- name: Set environment
env:
RELEASE_TAG: ${{ github.ref }}
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Build wheel
run: |
cd package/graphql
python setup.py sdist bdist_wheel
python -Im build
- name: Upload wheel(s)
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
python-version: 3.8
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install --upgrade pip setuptools wheel build
- name: Cache Node Modules
id: node-cache
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Install setup dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install --upgrade pip setuptools wheel build
- name: Install requirements.txt
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [opened, synchronize]
branches:
- develop
- feat/*
- main
- release/v[0-9]+.[0-9]+.[0-9]+

Expand All @@ -20,7 +21,7 @@ jobs:

all-tests:
runs-on: ubuntu-latest
needs: [build, e2e, test]
needs: [build, test]
if: always()
steps:
- run: sh -c ${{ needs.build.result == 'success' && needs.test.result == 'success' }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
@cd app && yarn && yarn build && cd ..

python: app
@python setup.py sdist bdist_wheel
@python -Im build

docker: python
@docker build -t voxel51/fiftyone .
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ script:
bash install.bash -d
```

Although not required, developers typically prefer to configure their FiftyOne
installation to connect to a self-installed and managed instance of MongoDB,
which you can do by following
[these simple steps](https://docs.voxel51.com/user_guide/config.html#configuring-a-mongodb-connection).

### Source installs in Google Colab

You can install from source in
Expand Down
4 changes: 2 additions & 2 deletions STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ For example, an import block might look like this:
"""
Module docstring.
| Copyright 2017-2023, Voxel51, Inc.
| Copyright 2017-2024, Voxel51, Inc.
| `voxel51.com <https://voxel51.com/>`_
|
"""
Expand Down Expand Up @@ -184,7 +184,7 @@ Short module description here (generally one sentence max).
A longer section can also be added here as appropriate.
| Copyright 2017-2023, Voxel51, Inc.
| Copyright 2017-2024, Voxel51, Inc.
| `voxel51.com <https://voxel51.com/>`_
|
"""
Expand Down
2 changes: 1 addition & 1 deletion app/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ the event.

## Copyright

Copyright 2017-2023, Voxel51, Inc.<br> voxel51.com
Copyright 2017-2024, Voxel51, Inc.<br> voxel51.com
21 changes: 17 additions & 4 deletions app/__mocks__/recoil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ export const getValue = (atom) => {
if (atom.params !== undefined) {
return mockValues[atom.key](atom.params);
}
return mockValues[atom.key];

const mockValue = mockValues[atom.key];
if (mockValue instanceof Function) {
return mockValue();
}

return mockValue;
};

const resetValue = (atom) => {
Expand All @@ -37,9 +43,12 @@ const resetValue = (atom) => {
const setValue = (atom, value) => {
if (atom.params) {
if (!mockValuesStore[atom.key]) mockValuesStore[atom.key] = {};
mockValuesStore[atom.key][JSON.stringify(atom.params)] = value;
const current = mockValuesStore[atom.key][JSON.stringify(atom.params)];
mockValuesStore[atom.key][JSON.stringify(atom.params)] =
value instanceof Function ? value(current) : value;
} else {
mockValues[atom.key] = value;
const current = mockValues[atom.key];
mockValues[atom.key] = value instanceof Function ? value(current) : value;
}
};

Expand Down Expand Up @@ -103,7 +112,10 @@ export function selectorFamily<
resolver.key = options.key;
resolver.params = params;
resolver.set = (value) =>
options.set({ set: setValue, get: getValue, reset: resetValue }, value);
options.set(params)(
{ set: setValue, get: getValue, reset: resetValue },
value
);
return resolver;
};
}
Expand All @@ -119,6 +131,7 @@ export type TestSelectorFamily<
P = any
> = {
(): ReturnType<T>["__tag"][0];
set: (params: ReturnType<T>["__tag"][0]) => void;
key: string;
params: P;
};
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"typedoc": "^0.23.21",
"typescript": "^4.7.4",
"typescript-plugin-css-modules": "^5.0.2",
"vite": "^3.2.7",
"vite": "^3.2.10",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-relay": "^2.0.0",
"vitest": "^0.34.6"
Expand Down
2 changes: 1 addition & 1 deletion app/packages/aggregations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"lodash": "^4.17.21",
"prettier": "2.2.1",
"typescript": "4.2.4",
"vite": "^3.2.7"
"vite": "^3.2.10"
}
}
45 changes: 15 additions & 30 deletions app/packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,65 +15,50 @@
"dependencies": {
"@fiftyone/components": "*",
"@fiftyone/core": "*",
"@fiftyone/flashlight": "*",
"@fiftyone/looker": "*",
"@fiftyone/map": "*",
"@fiftyone/relay": "*",
"@fiftyone/spaces": "*",
"@fiftyone/state": "*",
"@fiftyone/utilities": "*",
"@material-ui/core": "4.11.4",
"@material-ui/icons": "^4.9.1",
"@react-spring/web": "^9.4.3",
"@recoiljs/refine": "^0.1.1",
"@material-ui/core": "4.12.4",
"@use-gesture/react": "10.1.1",
"@xstate/react": "1.3.3",
"classnames": "^2.2.6",
"framer-motion": "^6.2.8",
"history": "^5.3.0",
"html2canvas": "1.0.0-rc.7",
"lodash": "^4.17.21",
"lru-cache": "^6.0.0",
"notistack": "^3.0.1",
"numeral": "^2.0.6",
"path-to-regexp": "^6.2.0",
"re-resizable": "^6.8.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "^3.1.4",
"react-ga4": "^2.1.0",
"react-hotkeys": "^2.0.0",
"react-input-autosize": "^3.0.0",
"react-is": "^17.0.1",
"react-laag": "^2.0.3",
"react-relay": "14.1.0",
"react-use-measure": "^2.0.1",
"react-uuid": "^1.0.2",
"recharts": "2.0.9",
"recoil": "0.7.6",
"recoil": "0.7.7",
"recoil-relay": "^0.1.0",
"recoil-sync": "^0.2.0",
"resize-observer-polyfill": "^1.5.1",
"searchable-react-json-view": "^0.0.8",
"styled-components": "^5.3.3",
"uuid": "^8.3.2",
"xstate": "^4.14.0"
"styled-components": "^6.1.8",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/lodash": "^4.14.182",
"@types/mime": "^2.0.3",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"@types/react-router": "^5.1.18",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@types/react-router": "^5.1.20",
"@types/styled-components": "^5.1.23",
"@vitejs/plugin-react-refresh": "^1.3.3",
"prettier": "2.2.1",
"relay-compiler": "^14.1.0",
"rollup-plugin-polyfill-node": "^0.6.2",
"typescript": "^4.7.4",
"typescript-plugin-css-modules": "^5.0.2",
"vite": "^3.2.7",
"vite": "^3.2.10",
"vite-plugin-relay": "^1.0.7",
"vite-plugin-rewrite-all": "^1.0.0"
"vite-plugin-rewrite-all": "^1.0.2"
},
"peerDependencies": {
"@mui/icons-material": "*",
"@react-spring/web": "*"
}
}
Loading

0 comments on commit 5bf793e

Please sign in to comment.