Skip to content

Commit 4510b3e

Browse files
committed
Merge branch 'main' into develop
2 parents 3990097 + c03edfb commit 4510b3e

File tree

48 files changed

+453
-498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+453
-498
lines changed

argilla-frontend/components/features/datasets/datasets-empty/useDatasetEmptyViewModel.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { useUser } from "~/v1/infrastructure/services/useUser";
33

44
const HF_PREFIX = "[hf_]";
55
const LOCAL_PREFIX = "[local_]";
6-
const HF_OWNER = "[HF_OWNER]";
7-
const HF_SPACE_NAME = "[HF_SPACE_NAME]";
6+
const HF_HOST = "[HF_HOST]";
87
const USER_API_KEY = "[USER_API_KEY]";
98
const LOCAL_HOST = "[LOCAL_HOST]";
109

@@ -51,10 +50,7 @@ export const useDatasetEmptyViewModel = () => {
5150

5251
if (row.includes(HF_PREFIX)) {
5352
content.push(
54-
row
55-
.replace(HF_PREFIX, "")
56-
.replace(HF_OWNER, hfEnvironment.user)
57-
.replace(HF_SPACE_NAME, hfEnvironment.space)
53+
row.replace(HF_PREFIX, "").replace(HF_HOST, hfEnvironment.host)
5854
);
5955

6056
continue;

argilla-frontend/docs/snippets/start_page.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import argilla as rg
2929

3030
client = rg.Argilla(
3131
[local_]api_url="[LOCAL_HOST]",
32-
[hf_]api_url="https://[HF_OWNER]-[HF_SPACE_NAME].hf.space",
32+
[hf_]api_url="https://[HF_HOST]",
3333
api_key="[USER_API_KEY]"
3434
)
3535
```
@@ -60,7 +60,7 @@ settings = rg.Settings(
6060
)
6161
dataset = rg.Dataset(
6262
name=f"my_first_dataset",
63-
workspace="<your-workspace>",
63+
workspace="argilla", # change this to your workspace
6464
settings=settings,
6565
client=client,
6666
)

argilla-frontend/v1/domain/entities/environment/Environment.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export class Environment {
2626
return {
2727
space: this.huggingface.spaceRepoName,
2828
user: this.huggingface.spaceAuthorName,
29+
host: this.huggingface.spaceHost,
2930
};
3031
}
3132
}

argilla-frontend/v1/infrastructure/services/useRunningEnvironment.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ describe("useRunningEnvironment", () => {
6565
expect(space).toEqual({
6666
user: "USER_NAME_FAKE",
6767
space: "AWESOME_SPACE",
68+
host: "huggingface.co",
6869
});
6970
});
7071
});

argilla-server/tests/unit/validators/test_records_bulk.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ async def configure_dataset(self) -> Dataset:
2929
dataset = await DatasetFactory.create(status="ready")
3030

3131
await TextFieldFactory.create(name="text", dataset=dataset)
32+
await TextFieldFactory.create(name="optional", dataset=dataset, required=False)
3233
await dataset.awaitable_attrs.fields
3334

3435
await dataset.awaitable_attrs.metadata_properties
@@ -40,7 +41,9 @@ async def test_records_bulk_create_validator(self, db: AsyncSession):
4041

4142
records_create = RecordsBulkCreate(
4243
items=[
43-
RecordCreate(fields={"text": "hello world"}, metadata={"source": "test"}),
44+
RecordCreate(fields={"text": "hello world", "optional": "optional"}, metadata={"source": "test"}),
45+
RecordCreate(fields={"text": "hello world", "optional": ""}, metadata={"source": "test"}),
46+
RecordCreate(fields={"text": "hello world", "optional": None}, metadata={"source": "test"}),
4447
]
4548
)
4649

argilla/CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,27 @@ These are the section headers that we use:
1414
* "Security" in case of vulnerabilities.
1515
-->
1616

17-
## [Unreleased]()
17+
## [2.0.1](https://github.com/argilla-io/argilla/compare/v2.0.0...releases/2.0.1)
18+
19+
### Fixed
20+
21+
- Fixed error when creating optional fields. ([#5362](https://github.com/argilla-io/argilla/pull/5362))
22+
- Fixed error creating integer and float metadata with `visible_for_annotators`. ([#5364](https://github.com/argilla-io/argilla/pull/5364))
23+
- Fixed error when logging records with `suggestions` or `responses` for non-existent questions. ([#5396](https://github.com/argilla-io/argilla/pull/5396) by @maxserras)
24+
- Fixed error from conflicts in testing suite when running tests in parallel. ([#5349](https://github.com/argilla-io/argilla/commit/1119b164d0623170d44561c6b75d439d2dc96bd0))
25+
- Fixed error in response model when creating a response with a `None` value. ([#5343](https://github.com/argilla-io/argilla/commit/9e3705061a2dd88a7852288d9f6fd1aaeaa9b062))
26+
27+
### Changed
28+
29+
- Changed `from_hub` method to raise an error when a dataset with the same name exists. ([#5258](https://github.com/argilla-io/argilla/pull/5358))
30+
- Changed `log` method when ingesting records with no known keys to raise a descriptive error. ([#5356](https://github.com/argilla-io/argilla/pull/5356))
31+
- Changed `code snippets` to add new datasets ([#5395](https://github.com/argilla-io/argilla/pull/5395))
32+
33+
### Added
34+
35+
- Added Google Analytics to the documentation site. ([#5366](https://github.com/argilla-io/argilla/pull/5366))
36+
- Added frontend skeletons to progress metrics to optimise load time and improve user experience. ([#5391](https://github.com/argilla-io/argilla/pull/5391))
37+
- Added documentation in methods in API references for the Python SDK. ([#5400](https://github.com/argilla-io/argilla/commit/a6fc0117bc4923aec0be80df27eb79ddf3f007c7))
1838

1939
### Fixed
2040

argilla/docs/community/contributor.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Thank you for investing your time in contributing to the project! Any contributi
1212
* **Discord**: You are welcome to join the [Argilla Discord community](http://hf.co/join/discord), where you can keep in touch with other users, contributors and the Argilla team. In the following [section](#first-contact-in-discord), you can find more information on how to get started in Discord.
1313
* **Git**: This is a very useful tool to keep track of the changes in your files. Using the command-line interface (CLI), you can make your contributions easily. For that, you need to have it [installed and updated](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) on your computer.
1414
* **GitHub**: It is a platform and cloud-based service that uses git and allows developers to collaborate on projects. To contribute to Argilla, you'll need to create an account. Check the [Contributor Workflow with Git and Github](#contributor-workflow-with-git-and-github) for more info.
15-
* **Developer Documentation**: To collaborate, you'll need to set up an efficient environment. Check the [developer documentation](../getting_started/installation.md) to know how to do it.
15+
* **Developer Documentation**: To collaborate, you'll need to set up an efficient environment. Check the [Server](https://github.com/argilla-io/argilla/blob/develop/argilla-server/README.md) and [Frontend](https://github.com/argilla-io/argilla/blob/develop/argilla-frontend/README.md) READMEs to know how to do it.
1616
* **Schedule a meeting with our developer advocate**: If you have more questions, do not hesitate to contact our developer advocate and [schedule a meeting](https://calendly.com/david-berenstein-huggingface/30min).
1717

1818
## First Contact in Discord
@@ -70,7 +70,7 @@ git clone https://github.com/[your-github-username]/argilla.git
7070
cd argilla
7171
```
7272

73-
To keep your fork’s main/develop branch up to date with our repo, add it as an upstream remote branch. For more info, check the [documentation](../getting_started/installation.md).
73+
To keep your fork’s main/develop branch up to date with our repo, add it as an upstream remote branch.
7474

7575
```sh
7676
git remote add upstream https://github.com/argilla-io/argilla.git
@@ -117,11 +117,11 @@ A sample addition would be:
117117
- Fixed the key errors for the `init` method ([#NUMBER_OF_PR](LINK_TO_PR)). Contributed by @github_handle.
118118
```
119119

120-
You can have a look at the [CHANGELOG.md](https://raw.githubusercontent.com/argilla-io/argilla/develop/CHANGELOG.md) file to see more cases and examples.
120+
You can have a look at the [CHANGELOG.md](https://github.com/argilla-io/argilla/blob/develop/argilla/CHANGELOG.md)) file to see more cases and examples.
121121

122122
### Make changes and push them
123123

124-
Make the changes you want in your local repository, and test that everything works and you are following the guidelines. Check the [documentation](../getting_started/installation.md) for more information about the development.
124+
Make the changes you want in your local repository, and test that everything works and you are following the guidelines.
125125

126126
Once you have finished, you can check the status of your repository and synchronize with the upstreaming repo with the following command:
127127

argilla/docs/getting_started/installation.md

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)