Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: access to list of rules while rule metrics are pending #2607

Merged
merged 194 commits into from
Mar 29, 2023

Commits on Jan 30, 2023

  1. feat(Client): remove on mouseleave event

    keithCuniah committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    26b8504 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. Configuration menu
    Copy the full SHA
    a5b48d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bdc3cb9 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. Configuration menu
    Copy the full SHA
    e79eb6e View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. Configuration menu
    Copy the full SHA
    6905376 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2023

  1. Configuration menu
    Copy the full SHA
    2fccff8 View commit details
    Browse the repository at this point in the history
  2. Alembic init

    jfcalvo committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    f9fd7bc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ce4af6b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fb273d1 View commit details
    Browse the repository at this point in the history
  5. Add create organizations table migration

    Francisco Aranda committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    5f76c45 View commit details
    Browse the repository at this point in the history
  6. Add create_workspaces_table migrations

    Francisco Aranda committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    b2b463a View commit details
    Browse the repository at this point in the history
  7. Increase black line length configuration to 120

    Francisco Aranda committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    434b0da View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Configuration menu
    Copy the full SHA
    d2e12eb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0af1957 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b13bb6c View commit details
    Browse the repository at this point in the history
  4. Add database.py setup

    frascuchon committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    f50aa89 View commit details
    Browse the repository at this point in the history
  5. wip: Add user orm model

    frascuchon committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    b4ca280 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    002abb2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6a102ae View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3e2eca9 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2023

  1. Add organization orm model

    jfcalvo committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    e3e0c03 View commit details
    Browse the repository at this point in the history
  2. Remove unused alembic README

    jfcalvo committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    e9bea4d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e7b8ba8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    11d1215 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    473858a View commit details
    Browse the repository at this point in the history
  6. - Move database models from folder to one single file.

    - Add relationship to User and Workspace models.
    - Minor fixes.
    jfcalvo committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    5086739 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4291233 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e1b844c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fac06bd View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    06ab131 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c03bd0e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    02a7303 View commit details
    Browse the repository at this point in the history
  13. chore: Merge branch 'feat/add-basic-database-support' of github.com:r…

    …ecognai/rubrix into feat/add-basic-database-support
    frascuchon committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    f319bf1 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. Configuration menu
    Copy the full SHA
    f31f0da View commit details
    Browse the repository at this point in the history
  2. Tests/make tests working with new database system (#2351)

    Changes in tests to integrate with the new database system.
    
    Also, correct the `workspaces` ORM -> View mapping.
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    frascuchon and pre-commit-ci[bot] authored Feb 16, 2023
    Configuration menu
    Copy the full SHA
    1482e53 View commit details
    Browse the repository at this point in the history
  3. Refactor User model (#2355)

    - Remove `email` and `password_reset_token` from `users` table
    migration.
    - Set `first_name` from `users` table as non nullable.
    - Modify `User` Pydantic model mapping `full_name` and `workspaces`
    using SQLAlchemy `User` model.
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    jfcalvo and pre-commit-ci[bot] authored Feb 16, 2023
    Configuration menu
    Copy the full SHA
    01d92a0 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2023

  1. Add new users creation endpoint (#2359)

    - Add new `POST /api/users` endpoint to create users.
    - Set `api_key` field as mandatory on Pydantic User model.
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    jfcalvo and pre-commit-ci[bot] authored Feb 17, 2023
    Configuration menu
    Copy the full SHA
    d5cefb2 View commit details
    Browse the repository at this point in the history
  2. Improve database sessions management (#2360)

    Improve how database sessions are used in context and endpoints:
    - Using a new `get_db` function yielding a `SessionLocal` instance and
    ensuring the session is closed.
    - All endpoints that require it now depends on `get_db`.
    - Accounts context functions now receive a `db` session argument.
    - We have improved how `SessionLocal` is used on seeds functions.
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    jfcalvo and pre-commit-ci[bot] authored Feb 17, 2023
    Configuration menu
    Copy the full SHA
    a82e536 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2023

  1. Add new endpoint to list users (#2366)

    This PR adds a new API endpoint to list all the users present in the
    database.
    
    It doesn't includes pagination. We need to discuss if it's something
    that we need right now, maybe it can be implemented later.
    jfcalvo authored Feb 20, 2023
    Configuration menu
    Copy the full SHA
    57791fa View commit details
    Browse the repository at this point in the history
  2. Add new endpoint to delete users (#2363)

    Add new endpoint to delete users.
    - The endpoint returns a 404 error when the provided `user_id` is not
    found.
    - I have found a problem with `UUID` type not being correctly serialized
    to JSON for some reason. We need to find an alternative solution to this
    (more info in the code).
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    jfcalvo and pre-commit-ci[bot] authored Feb 20, 2023
    Configuration menu
    Copy the full SHA
    863a647 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. Configuration menu
    Copy the full SHA
    792fa5e View commit details
    Browse the repository at this point in the history
  2. Add first iteration of workspace endpoints (#2375)

    This PR includes the first iteration for the new workspaces API.
    
    The included endpoints allow to:
    - `GET /api/workspaces`: list workspaces.
    - `POST /api/workspaces`: create a new workspace.
    - `DELETE /api/workspaces/:workspace_id`: delete a workspace.
    - `GET /api/workspaces/:workspace_id/users`: list users members of the
    workspace.
    - `POST /api/workspaces/:workspace_id/users/:user_id`: add a new user as
    member of the workspace.
    - `DELETE /api/workspace/:workspace_id/users/:user_id`: remove/delete a
    user as member of the workspace.
    
    It also includes changes to `users_workspaces` table migration adding on
    delete cascade. With this change once a record on `users` or
    `workspaces` table is deleted we are deleting the associated
    `users_workspaces` record too.
    
    There are some missing things that are not included and we will fix
    later:
    - When deleting workspaces we are not checking if they have associated
    datasets or not.
    - Pagination (we need to discuss the response format for this).
    - Some missing errors that are not managed yet (for example conflict
    error when an user is already member of a workspace and you are trying
    to create it).
    - Timestamps (`inserted_at`, `udpdated_at` columns).
    - Tests (we want to do some improvements to our testing suite first).
    
    @frascuchon tell me if you want to discuss some of these missing points.
    jfcalvo authored Feb 21, 2023
    Configuration menu
    Copy the full SHA
    e886536 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1513d63 View commit details
    Browse the repository at this point in the history
  4. Add timestamps columns and fields to database models (#2378)

    This PR include the following changes:
    * Add `inserted_at` and `updated_at` columns to all database table
    migrations.
    * Add `inserted_at` and `updated_at` fields to database models and
    Pydantic schemas.
    
    Missing things:
    * It was not possible to add `inserted_at`, and `updated_at` fields to
    `User` Pydantic schema due to some errors in old code. We can fix this
    later.
    
    Gotchas:
    * In order to have the same exact values for `inserted_at` and
    `updated_at` when a record is inserted I have created a
    `default_inserted_at` function that get the context of the operation to
    extract the value of `inserted_at` and use it on `update_at`.
    * I can see microseconds level date times inserted on SQLite so I guess
    we are covered on that sense (maybe we can check this once we test the
    changes with PostgreSQL).
    jfcalvo authored Feb 21, 2023
    Configuration menu
    Copy the full SHA
    d72b2fa View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2023

  1. Configuration menu
    Copy the full SHA
    90e98e0 View commit details
    Browse the repository at this point in the history
  2. Change tests configuration to allow testing with new endpoints using …

    …database (#2395)
    
    In this PR we are making changes on how tests are configured to be used
    with the database:
    * Moved test seeds to a new `test_seeds` function at
    `argilla.server.seeds` package.
    * One the new `test_seeds` function we are defining a default "argilla"
    user. In the future `test_seeds` should only have proper seeds necessary
    for the application to work normally and users and other stuff should be
    added as test fixtures.
    * We didn't find a proper way to use transactions and rollback changes
    in every unit test and allow endpoints access the same data so we are
    truncating all the database tables after every unit test execution.
    * We added a test for one of the new workspaces endpoint that interact
    with the database so we can check that everything is working as
    expected.
    * Now our GitHub actions run (alembic) database migrations in the tests
    section.
    jfcalvo authored Feb 23, 2023
    Configuration menu
    Copy the full SHA
    030b40d View commit details
    Browse the repository at this point in the history
  3. Add explicit ascendent order by inserted_at column to collection endp…

    …oints (#2397)
    
    This PR add explicit ordering by db insertion time (using `inserted_at`
    column) to endpoints that are returning collections from database. Right
    now those are for users and workspaces.
    
    This explicit order avoid leaving the order to the database so it is
    consistent between SQLite and PostgreSQL or other databases, and always
    returning the same result.
    jfcalvo authored Feb 23, 2023
    Configuration menu
    Copy the full SHA
    20bafa8 View commit details
    Browse the repository at this point in the history
  4. Add unique constraint to workspaces name column (#2396)

    This PR add an unique constraint to column `name` on `workspaces` table.
    
    This restriction is necessary right now because we are using workspaces
    name inside elastic-search indexes and it's not possible to have
    duplications. In the future we will have information about elastic
    indexes in the database (using ids) so we can rethink is the uniqueness
    is necessary.
    
    I have added a missing `mapped_column(unique=True)` for `username` field
    on `User` model too.
    jfcalvo authored Feb 23, 2023
    Configuration menu
    Copy the full SHA
    ff1b92e View commit details
    Browse the repository at this point in the history
  5. Fix wrong method name when user is not found on authenticate_user fun…

    …ction (#2401)
    
    A small fix for a wrong method name used when user is not found on
    `authenticate_user`.
    
    Waiting for changes on test settings to be merged so we can write some
    new tests for this one.
    jfcalvo authored Feb 23, 2023
    Configuration menu
    Copy the full SHA
    05f4395 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2023

  1. Adding id and timestamps to user (#2413)

    The pydantic `User` class contains id, and timestamp (`inserted_at` and
    `updated_at` attributes).
    
    Also, old user components (service, dao,...) are removed, and all
    affected tests removed/adapted.
    
    ---------
    
    Co-authored-by: José Francisco Calvo <[email protected]>
    frascuchon and jfcalvo authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    3e701ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75366b6 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2023

  1. Add factories and additional tests for new endpoints (#2415)

    This PR add tests for new endpoints and also:
    - Adding [`factory-boy`](https://factoryboy.readthedocs.io/en/stable/)
    as development dependency.
    - Adding factories: `UserFactory`, `WorkspaceFactory`, and
    `UserWorkspaceFactory`.
    - Fixing relationship warnings for `UserWorkspace` SQLAlchemy model.
    
    Additionally some of the tests are marked as pending for two different
    reasons:
    - SQLite is by default [not enforcing referencial integrity with foreign
    keys](https://docs.sqlalchemy.org/en/20/dialects/sqlite.html#foreign-key-support),
    we have different options here:
    1. Enforce foreign key support executing `PRAGMA` statement on
    connection.
      2. Add additional checks to the endpoints where necessary.
    - Pydantic is by default accepting empty strings as valid values for
    fields that are not optional. This is causing for example that create an
    user with an empty string as `first_name` is totally valid.
    - We need to check if it's necessary to add a constraint to our models
    or an alternative solution (it is a dangerous default behavior).
    
    We have discussed these points and we will solve them as follows:
    1. We will enforce SQLite foreign keys integrity using a `PRAGMA`
    statement in every connection.
        - The changes are included in this PR.
    - Even with this I have added some additional checks in some endpoints
    to give more information to the user when necessary.
    2. For Pydantic models accepting empty strings for non-optional string
    fields:
    - We will create a new PR with a solution for this, adding more
    constraints of changing this Pydantic default behavior.
    3. We will change `users_workspaces` table name and models to
    `workspaces_users`, ' WorkspaceUser`, etc. :
         - The changes will be done in a different PR.
         - This has sense because the most important entity is workspace.
    jfcalvo authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    1201d46 View commit details
    Browse the repository at this point in the history
  2. Add __repr__ implementation for database models (#2441)

    This PR adds `___repr___` implementation for all database models so we
    can easily debug on console.
    jfcalvo authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    17998d8 View commit details
    Browse the repository at this point in the history
  3. Rename users_workspaces to workspaces_users (#2436)

    In this PR I'm redefining the order of the entities in
    `users_workspaces` table to `workspaces_users`. This will improve the
    semantics of our endpoints and make it more clear.
    
    I have changed too the associated ORM models and Pydantic schemas to
    reflect this change.
    
    Everything else should remain the same, behavior is not changing.
    jfcalvo authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    e20de8c View commit details
    Browse the repository at this point in the history
  4. Improve field constraints for some Pydantic schemas (#2432)

    We found that Pydantic schema string fields allow empty strings by
    default, being the field optional or not.
    
    More info about that here:
    pydantic/pydantic#1626
    
    With this behavior we can finish with empty strings used in fields like
    `user.first_name`, `user.last_name` and others. Something that can have
    a bad impact in our application.
    
    I have explored different solutions, like defining a common validation
    or a custom field type. At the end I think the most simple solution is
    to be explicit and define the constraint that we want for the fields. In
    this case `min_length=1` when necessary.
    
    Additional changes:
    * Added new max length constraint for `user.password` field.
    * Notice how I have changed `constr` for `str = Field(...)`. If I'm not
    wrong looks like they are similar but `Field` is used to generate a
    validation response when errors are found.
    jfcalvo authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    f73159f View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Merge from develop branch (#2445)

    Still failing 4 tests. All failed tests are related to workspace
    operations.
    
    ```bash
    FAILED tests/client/test_api.py::test_dataset_copy_to_another_workspace - argilla.client.sdk.commons.errors.NotFoundApiError: Argilla server returned an error with http status: 404
    
    FAILED tests/functional_tests/test_log_for_text_classification.py::test_log_data_in_several_workspaces - Exception: Wrong provided workspace my-fun-workspace
    FAILED tests/functional_tests/datasets/test_delete_records_from_datasets.py::test_delete_records_without_permission - Exception: Wrong provided workspace argilla
    
    FAILED tests/server/datasets/test_api.py::test_delete_records - assert 404 == 403
    ```
    
    
    Running tests locally I found an error with DB rollback when a test is
    failing. I've stopped using current seeds for tests (adding users).
    Those users are created as a fixture where they are required. This
    change affects to some users tests
    frascuchon authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    310ab28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c117b3d View commit details
    Browse the repository at this point in the history
  3. Tests will link users to workspaces when needed (#2446)

    Failing tests were trying to launch actions using a workspace linked to
    the `argilla` user. Now, those tests will create this link explicitly.
    frascuchon authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    889fafa View commit details
    Browse the repository at this point in the history
  4. Use ARGILLA_DATABASE_URL to set sqlalchemy and alembic database setti…

    …ngs (#2447)
    
    With this PR we are making the necessary changes to create database
    connections using a new `ARGILLA_DATABASE_URL` environment variable for
    SQLAlchemy and Alembic migrations.
    
    Considerations:
    - Right now the value of `ARGILLA_DATABASE_URL` is get on
    `server/database.py` file. Maybe we should think into moving it to some
    settings file.
    - A new `postgresql` section has been added to `pyproject.toml`. We
    should add something to the documentation about installing dependencies
    with `pip` for this section if the user wants to use PostgreSQL.
    - I have moved the connection argument `check_same_thread=False` to the
    default `ARGILLA_DATABASE_URL` value. If a users wants to use a custom
    SQLite URL the same connection argument should be used (maybe we need to
    add something about this to the documentation).
    - API endpoint tests are passing locally using PostgreSQL.
    
    ## How to run the application using PostgreSQL
    
    Installing PostgreSQL and creating `argilla` database:
    
    ```sh
    $ brew install postgresql
    $ createdb argilla
    ```
    
    Installing Python PostgreSQL dependencies and run migrations:
    
    ```sh
    $ pip install -e .[postgresql]
    $ ARGILLA_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/argilla alembic upgrade head
    ```
    
    Running tests
    
    ```sh
    $ ARGILLA_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/argilla pytest tests
    ```
    jfcalvo authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    82623cd View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. Configuration menu
    Copy the full SHA
    f6ce9df View commit details
    Browse the repository at this point in the history
  2. Add new function to get workspace by name (#2464)

    Simply add a new accounts context function to get workspaces by name.
    jfcalvo authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    09bcee6 View commit details
    Browse the repository at this point in the history
  3. Clean user pydantic model (#2462)

    We remove extra things from the `User` pydantic model.
    
    - The `email` attribute
    - Extra not needed validators, like username or workspace patterns,
    since they are already done in the `UserCreate` and `WorkspaceCreate`
    classes
    
    In a separate PR, workspace validations will be moved to a proper
    validation module/class used for that purpose.
    frascuchon authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    ce9e0e5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7e03a64 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. Add basic role support to users (#2467)

    This PR adds the following changes:
    - Add a new string `role` column to `users` table. The column is non
    nullable and indexed.
    - Add `UserRole` class as enumerable. The class inherits from `Enum` and
    `str` (to avoid some JSON encoding problems, maybe we can create a
    custom JSON encoder to avoid possible problems).
    - Add `role` as enumerable field to `User` SQLAlchemy model with
    `annotator` as default.
    - Add `role` as optional for `UserCreate` Pydantic schema.
    
    Changes has been tested locally and are working with PostgreSQL too.
    jfcalvo authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    e3e0884 View commit details
    Browse the repository at this point in the history
  2. fix: prevent to include query+* in highlights

    closes #2049
    leire committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    c0b35cb View commit details
    Browse the repository at this point in the history
  3. Remove extra fields in User (#2470)

    Remove the extra `workspaces` field and the unused `disabled` field.
    frascuchon authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    f36fea4 View commit details
    Browse the repository at this point in the history
  4. Add new ARGILLA_HOME_PATH environment variable (#2468)

    This PR adds `ARGILLA_HOME_PATH` new environment variable with a default
    value equal to `~/.argilla`.
    
    After that `ARGILLA_HOME_PATH` is used to define the default value for
    `ARGILLA_DATABASE_URL`.
    
    I have added these changes to `_const.py` file but maybe we should
    create a `settings.py` file or something similar.
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    jfcalvo and pre-commit-ci[bot] authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    ce49014 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c3e8c08 View commit details
    Browse the repository at this point in the history
  6. Add migration to create users on database from YAML config file (#2459)

    This PR adds a new users migration task that will allow to move users
    defined at a YAML file to database.
    
    After checking that this is working as expected and it's what we really
    want we can made the necessary changes to our documentation (maybe in
    this current PR).
    
    ## Details about the migration process:
    
    - It's executed inside a database transaction so an error in one
    specific user should rollback all the changes.
    - I have added some Pydantic basic schemas to validate the content from
    the YAML file. Please check if some additional checks or validations can
    be added.
    - The code is capturing the exception when the file is not found.
    Knowing that this is a task to be manually executed, maybe we should not
    capture the exception and let it crash.
    
    ## How to execute the migration process:
    
    ```sh
    $ ARGILLA_LOCAL_AUTH_USERS_DB_FILE=users.yml python -m argilla.tasks.users_migrator
    ```
    jfcalvo authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    a72e6fb View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Add default user and show warning message on startup when no users fo…

    …und (#2481)
    
    With this PR we will add a default `argilla` user (with `argilla`) when
    there are not users on the database.
    
    We also show a warning message indicating that it could be dangerous to
    have default `argilla` user in a production environment and what to do
    in that case.
    
    In the case that we already have users on the database (because of the
    migration) we check if the `argilla` default user is using default
    credentials (password and api key) and in that case we show the same
    previous warning.
    jfcalvo authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    68295ce View commit details
    Browse the repository at this point in the history
  2. Add new task to execute alembic database migrations (#2489)

    This PR adds a new task to run alembic database migration in the same
    way that we do with `alembic upgrade head` but using an argilla task.
    
    To execute the task you need to do:
    
    ```sh
    $ python -m argilla.tasks.database.migrate
    ```
    jfcalvo authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    24ec2ab View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. improve pattern

    leire committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    ed5e7f9 View commit details
    Browse the repository at this point in the history
  2. inclue accents

    leire committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    42260f7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    678de36 View commit details
    Browse the repository at this point in the history
  4. Remove creation of default user from server startup (#2498)

    This PR removes the creation of the default user from the server startup
    process.
    
    The idea is to move this functionality to a new task that will allow
    users to create the default `argilla` user from command line.
    jfcalvo authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    7bb8466 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. Create task CLI for Argilla users creation (#2488)

    Adding a task to create users from command line.
    
    ```bash 
    # To create an user
     python -m argilla.tasks.create_user --username 3233edrito2df --role admin --password 12345678932
    
    # To show help
    python -m argilla.tasks.create_user --help
    ```
    
    
    
    TODO:
    - [x] Add tests
    
    ---------
    
    Co-authored-by: José Francisco Calvo <[email protected]>
    frascuchon and jfcalvo authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    89e28d5 View commit details
    Browse the repository at this point in the history
  2. Add basic authorization policies (#2491)

    This is a first proposal of the new authorization policies after
    visiting them for the first time on @frascuchon PR:
    #2469
    
    The general idea is to have a `policies` package where we can create
    different policies classes including the authorization logic for every
    model in our application.
    
    The `policies` package will include also two method to facilitate check
    authorization policies on API handlers.
    - `authorized`: that will raise a `ForbiddenOperationError` exception if
    the policy does not check.
    - `is_authorized`: that will return `True` or `False` depending if the
    policy checks or not.
    
    Things to have into account:
    - The user that we get as `current_user` on API handlers is not an
    SQLAlchemy ORM `User` model (we need to take a look to this
    @frascuchon).
    - The creation of default user on server startup it's breaking some of
    my tests so I have disabled it (we can discuss if with the new user
    creation task this can be removed).
    - There is an alternative version of authorization policies that we can
    implement using closures. It has a lot of flexibility but adds a little
    bit of complexity to the code.
    jfcalvo authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    6b6fc31 View commit details
    Browse the repository at this point in the history
  3. Add task to create default user on database (#2502)

    This PR adds a new task to create user with defaults credentials on
    database.
    
    ```sh
    # Get help
    $ python -m argilla.tasks.users.create_default --help
    
    # Create the default user
    $ python -m argilla.tasks.users.create_default
    
    # Create the default user without output
    $ python -m argilla.tasks.users.create_default --quiet
    ```
    
    I have refactored a little bit some `contexts.accounts` functions
    related with passwords, maybe it could be applied later to some other
    PRs on the go.
    jfcalvo authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    8b6d7b3 View commit details
    Browse the repository at this point in the history
  4. Move and rename some files to users tasks package (#2507)

    This PR improves the state of the users tasks package:
    - Move `users_migrator` to `tasks.users` package and renamed it to
    `migrate`.
    - Rename `create_user` to `create`.
    
    At the end we have the following tasks available:
    
    ```sh
    # Creates a new user in the database
    $ python -m argilla.tasks.users.create
    
    # Creates a user with default credentials into the database
    $ python -m argilla.tasks.users.create_default
    
    # Migrates from a YAML users file to database
    $ python -m argilla.tasks.users.migrate
    ```
    
    And additionally (not related with this PR changes but adding it
    anyway):
    
    ```sh
    # Run pending database migrations
    $ python -m argilla.tasks.database.migrate
    ```
    jfcalvo authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    7866e1e View commit details
    Browse the repository at this point in the history
  5. First integration of new resources with current API endpoints (#2505)

    Using the `DELETE /api/datasets/:name`, this PR shows how the
    integration with the new database, models, and policies could be
    applied.
    
    - A new `DatasetPolicy` class has been created
    - The current user used for this endpoint is now a `models.User`
    instance (using the new method `provider.get_current_user`)
    frascuchon authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    63fcdd5 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. Configuration menu
    Copy the full SHA
    b7eb0c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8d36ef1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8c05058 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3a790c1 View commit details
    Browse the repository at this point in the history
  5. Alembic migrations working with argilla as Python package (#2511)

    This PR include changes to allow alembic database migrations work as
    expected with argilla built as a Python package.
    
    I have moved `alembic.ini` from root project to
    `src/argilla/alembic.ini` . With this change we can't execute `alembic`
    anymore without specifying where `alembic.ini` is with `--config`
    parameter.
    
    So in order to execute `alembic` command in development we need to set
    `--config parameter`:
    
    ```sh
    $ alembic --config src/argilla/alembic.ini upgrade head
    ```
    
    Alternatively we can set `ALEMBIC_CONFIG`:
    
    ```sh
    $ ALEMBIC_CONFIG=src/argilla/alembic.ini alembic upgrade head
    ```
    
    I followed the steps below to test the changes:
    
    ## Create a testing environment to build the argilla package
    
    ```sh
    $ conda create -n argilla-testing python=3.8
    $ conda activate argilla-testing
    ```
    
    ## Build the package
    
    Only building the python code for testing purposes:
    
    ```sh
    $ python -m build
    ```
    
    ## Install the package
    
    ```sh
    $ pip install dist/argilla-1.4.0.dev0.tar.gz[server,listeners,postgresql]
    ```
    
    ## Testing that changes are working
    
    These command should be executed outside argilla root project path, to
    be sure that everything is working running with the installed Python
    package.
    
    Running database migrations (default SQLite):
    
    ```sh
    $ python -m argilla.tasks.database.migrate
    INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
    INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
    INFO  [alembic.runtime.migration] Running upgrade  -> 74694870197c, create users table
    INFO  [alembic.runtime.migration] Running upgrade 74694870197c -> 82a5a88a3fa5, create workspaces table
    INFO  [alembic.runtime.migration] Running upgrade 82a5a88a3fa5 -> 1769ee58fbb4, create workspaces_users table
    ```
    
    Running database migrations with PostreSQL:
    
    ```
    $ createdb argilla
    $ ARGILLA_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/argilla python -m argilla.tasks.database.migrate
    INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
    INFO  [alembic.runtime.migration] Will assume transactional DDL.
    INFO  [alembic.runtime.migration] Running upgrade  -> 74694870197c, create users table
    INFO  [alembic.runtime.migration] Running upgrade 74694870197c -> 82a5a88a3fa5, create workspaces table
    INFO  [alembic.runtime.migration] Running upgrade 82a5a88a3fa5 -> 1769ee58fbb4, create workspaces_users table
    ```
    
    Adding user with default credentials (default SQLite):
    
    ```
    $ python -m argilla.tasks.users.create_default
    User with default credentials succesfully created:
    • username: 'argilla'
    • password: '1234'
    • api_key:  'argilla.apikey'
    ```
    
    Adding user with default credentials with PostgreSQL:
    
    ```
    $ ARGILLA_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/argilla python -m argilla.tasks.users.create_default
    User with default credentials succesfully created:
    • username: 'argilla'
    • password: '1234'
    • api_key:  'argilla.apikey'
    ```
    frascuchon authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    463f244 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2023

  1. Configuration menu
    Copy the full SHA
    3ba05b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e30453 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    302dada View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

  1. Integrate datasets crud endpoints (#2510)

    This PR integrates new DB logic and policies with the current
    implementation.
    
    - The main changes are applied to the dataset service class
    - The `auth.get_current_user` returns a `models.User` instance
    - The ONLY change in endpoints is using this new `auth.get_current_user`
    method
    
    In a separate PR the pydantic User class will be cleaned and normalized
    
    ---------
    
    Co-authored-by: José Francisco Calvo <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: José Francisco Calvo <[email protected]>
    4 people authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    83a11e9 View commit details
    Browse the repository at this point in the history
  2. Clean pydantic user class (#2518)

    - Removing extra method and computed properties for pydantic
    `User`class.
    - import `models.User` instead of security. model
    frascuchon authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    ebcd381 View commit details
    Browse the repository at this point in the history
  3. Support api-key and password as parameter when using users.create_def…

    …ault task (#2516)
    
    This PR includes the following changes:
    * Adds `--api-key` and `--password` parameters to
    `argilla.tasks.users.create_default`.
    * Now `argilla.tasks.users.create_default` checks if there is a user
    using default username before creating it and showing a message in such
    case (but not raising an error).
    jfcalvo authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    084de8f View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2023

  1. Return all workspaces for admin users (#2523)

    The current client will check if a user can work on a specific workspace
    by using workspaces info returning in `/api/me` Returning all workspaces
    from the `/api/me` for admin users keeps the backward compatibility with
    the client flow.
    
    ---------
    
    Co-authored-by: José Francisco Calvo <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    dcb5390 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da4026c View commit details
    Browse the repository at this point in the history
  3. Make workspace mandatory for dataset requests (#2529)

    The workspace name will be mandatory for those requests working with
    datasets.
    
    All except the dataset list, which will remain optional.
    
    Also, the dataset tests are upgraded using the `test_client` fixture,
    instead of custom mocked_client
    
    ---------
    
    Co-authored-by: José Francisco Calvo <[email protected]>
    frascuchon and jfcalvo authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    6718b01 View commit details
    Browse the repository at this point in the history
  4. Change Dockerfiles to support database changes (#2524)

    This PR will include changes to our Dockerfile images to have support to
    the new database integration.
    jfcalvo authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    066be20 View commit details
    Browse the repository at this point in the history
  5. Add admin password and admin api-key to release Dockerfile (#2538)

    Only adding two new env vars `ADMIN_PASSWORD` and `ADMIN_API_KEY`
    allowing the configuration of the password and api key when using
    `release.Dockerfile`.
    jfcalvo authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    8dcad98 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a374585 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2023

  1. Add support to create workspaces for argilla users.create task (#2544)

    This PR adds a new optional `--workspace` parameter to the
    `argilla.tasks.user.create` task. The parameter can be used multiple
    times to add the user to multiple workspaces.
    
    If the workspaces doesn't exist these will be created.
    
    You can use the new parameter as follows:
    ```sh
    $ python -m argilla.tasks.users.create --first-name John --last-name Doe --role admin --username johndoe --password 12345678 --workspace workspace-a --workspace workspace-b
    User succesfully created:
    • first_name: 'John'
    • last_name: 'Doe'
    • username: 'johndoe'
    • role: 'admin'
    • api_key: 'hZQKQa-zWzXSaw1VMgy8Ego6B8u2qoPFb7bp_BgKOKWnueYFzcvvevihs6YqlNOuHzFC_MQNwpmo41J5Ce3Htgj8mT6KIrYrt3mk4EFJ5S8'
    • workspaces: ['workspace-a', 'workspace-b']
    ```
    jfcalvo authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    1c796dc View commit details
    Browse the repository at this point in the history
  2. Explicit setup to add alembic.ini in package distribution (#2542)

    It's what it is
    
    @jfcalvo I see also that the `script.mako` file is not included by
    default. Do we need it?
    frascuchon authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    ecb1568 View commit details
    Browse the repository at this point in the history
  3. Change users.migrate task to be a basic click command (#2548)

    The idea of this PR is to change `argilla.tasks.users.migrate` task to
    be a click command easily executable from command line.
    
    I have refactored the tests to check that everything is working as a
    click command too.
    jfcalvo authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    e2b9865 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2023

  1. Configuration menu
    Copy the full SHA
    0c5eef9 View commit details
    Browse the repository at this point in the history
  2. users.create task will skip without error when user already exists in…

    … DB (#2551)
    
    The users.create task will check if the username already exists. If yes,
    the task will finish without errors
    frascuchon authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    5922b49 View commit details
    Browse the repository at this point in the history
  3. Add --api-key as parameter to argilla.tasks.users.create (#2555)

    This PR adds a new optional not prompted parameter `--api-key` to
    `argilla.tasks.users.create` with a minimum length of 8 characters.
    jfcalvo authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    fe8cc71 View commit details
    Browse the repository at this point in the history
  4. Change policies for dataset update (#2549)

    This PR changes the update dataset policy to accept updating a dataset
    (tags and metadata) for all users linked to the dataset workspace.
    
    This may change in the future.
    frascuchon authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    6175f5a View commit details
    Browse the repository at this point in the history
  5. Review annotator policies for dataset settings (#2547)

    For an annotator, dataset settings are visible in read-only mode.
    
    This PR adds task dataset settings-related policies and uses them in
    dataset settings-related actions.
    
    Also, new tests are added to test this functionality.
    
    ---------
    
    Co-authored-by: José Francisco Calvo <[email protected]>
    frascuchon and jfcalvo authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    0f7660d View commit details
    Browse the repository at this point in the history
  6. Fix Pydantic User schema full_name attribute to don't use last_name w…

    …hen is None (#2545)
    
    `last_name` column on `users` database is optional and was wrongly
    rendered on `User` Pydantic schema for `full_name` dict property.
    
    This PR only returns the user `first_name` when `last_name` is not
    available (when is `None`).
    
    ---------
    
    Co-authored-by: Francisco Aranda <[email protected]>
    jfcalvo and frascuchon authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    539c9ae View commit details
    Browse the repository at this point in the history
  7. Raise EntityAlreadyExistsError for new endpoint handlers (#2556)

    This PR includes some additional checks to new endpoints that are
    creating entities to check before hand if those entities exists.
    
    These changes are included for the following endpoints:
    - Create users.
    - Create workspaces.
    - Create workspace users.
    jfcalvo authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    325ecfd View commit details
    Browse the repository at this point in the history
  8. Add first name and last name to user schema (#2546)

    **Note:** This PR is based on changes added by
    #2545 so please review
    #2545 first.
    
    In this PR I'm adding `first_name` and `last_name` to `User` Pydantic
    schema. I have not found a proper way to deprecate `full_name` field (I
    have only found this pydantic/pydantic#2255).
    @frascuchon if you know of some proper way to deprecate this field and
    automagically show that on swagger docs please tell me.
    jfcalvo authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    0dea3af View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e120bc5 View commit details
    Browse the repository at this point in the history
  10. Adapt the quickstart image (#2559)

    This PR makes several modifications to the Argilla quickstart image:
    
    - Replaces "Team" and "Argilla" users with "Admin" and "Annotator"
    users.
    - Aligns all environment variables with their corresponding user types:
    ADMIN_* and ANNOTATOR_*.
    - For admin users, it is possible to set up the username, API key, and
    password using the ADMIN_USERNAME, ADMIN_API_KEY, and ADMIN_PASSWORD
    variables.
    - For annotator users, it is possible to set up the username and
    password using the ANNOTATOR_USERNAME and ANNOTATOR_PASSWORD variables.
    - By default, the operational workspace will be based on the annotator's
    username. However, this can be overridden using the ARGILLA_WORKSPACE
    environment variable.
    
    ---------
    
    Co-authored-by: José Francisco Calvo <[email protected]>
    frascuchon and jfcalvo authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    bebdc32 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5c14200 View commit details
    Browse the repository at this point in the history
  12. Merge branch 'feat/add-basic-database-support' of github.com:recognai…

    …/rubrix into feat/add-basic-database-support
    frascuchon committed Mar 16, 2023
    Configuration menu
    Copy the full SHA
    03d8c5b View commit details
    Browse the repository at this point in the history
  13. Add argilla_data volume to docker compose (#2560)

    In this PR we are defining an argilla data volume to be used on our
    `docker-compose.yaml`.
    
    Things to have into account:
    - <del>I'm defining the volume as `data` because docker adds the
    `argilla_` prefix once it's created being `argilla_data` at the
    end.</del>
    - Environment variables defined on the docker compose cannot being used
    on the right side of the volumes section. This can potentially provoke
    errors if the users sets the `ARGILLA_HOME_PATH` value.
    
    I have successfully tested to set a custom volume pointing to a host
    folder with:
    
    ```dockerfile
    argilla:
        volumes:
          - ${HOME}/.argilla:/var/lib/argilla
         
    networks:
      argilla:
        driver: bridge
    volumes:
      # argilladata:
      elasticdata:
    ```
    
    And the database file is correctly created on my home folder. Restarting
    the docker compose is working too.
    jfcalvo authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    f213694 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2023

  1. Add missing environment variables to server configuration docs (#2563)

    Simply adding some new environment variables that we are using with our
    latests database changes.
    
    If I need to add them somewhere else please let me know.
    jfcalvo authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    59f9c18 View commit details
    Browse the repository at this point in the history
  2. Remove old tests

    frascuchon committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    71eed13 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. Replace team.apikey with admin.apikey on the entire project (#2568)

    With the latest changes done to Quickstart Dockerfile we changed the
    default api-key for admin user from `team.apikey` to `admin.apikey`.
    
    This PR replace all the ocurrences of the old `team.apikey` with the new
    `admin.apikey`.
    jfcalvo authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    f249cd3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b77d92b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2a0ff8e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b2e20bb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f9217e7 View commit details
    Browse the repository at this point in the history
  6. update changelog

    frascuchon committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    46ae1af View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3e1aafc View commit details
    Browse the repository at this point in the history
  8. Merge remote-tracking branch 'origin/refactor/sort-inputs-for-text-cl…

    …assification-alphabetically' into develop-for-deployment
    frascuchon committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    fc521ba View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b47793e View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. Configuration menu
    Copy the full SHA
    ca314e2 View commit details
    Browse the repository at this point in the history
  2. mock user

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    4ce6be3 View commit details
    Browse the repository at this point in the history
  3. add link to user settings page

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    fe0b443 View commit details
    Browse the repository at this point in the history
  4. move header out from the layout to keep layout generic

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    219b785 View commit details
    Browse the repository at this point in the history
  5. create page user settings

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    2333a90 View commit details
    Browse the repository at this point in the history
  6. header for user settings

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    9812f0e View commit details
    Browse the repository at this point in the history
  7. improve performance header

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    b127de8 View commit details
    Browse the repository at this point in the history
  8. user settings top content

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    2848f11 View commit details
    Browse the repository at this point in the history
  9. user settings leftContent

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    9a03158 View commit details
    Browse the repository at this point in the history
  10. user token component

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    343890c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    acd6a80 View commit details
    Browse the repository at this point in the history
  12. New User Management documentation (#2541)

    A first iteration of changes in new user management doc sections.
    
    
    - Still missing HOWTO delete users and workspaces using the API
    
    ---------
    
    Co-authored-by: Natalia Elvira <[email protected]>
    Co-authored-by: Daniel Vila Suero <[email protected]>
    Co-authored-by: José Francisco Calvo <[email protected]>
    Co-authored-by: David Berenstein <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: José Francisco Calvo <[email protected]>
    7 people authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    657c4e7 View commit details
    Browse the repository at this point in the history
  13. Use admin workspace by default on Quickstart Docker image (#2579)

    On our Q&A session we found that some tutorials were failing due to
    missing `admin` workspace.
    
    Argilla tutorials are using `admin` user but `admin` workspace was not
    created on the Quicktstart Docker image making tutorials to not work.
    This PR sets `ARGILLA_WORKSPACE` to use `ADMIN_USERNAME` by default so
    `admin` workspace is created.
    
    <del>Once I have checked on HF that everything is working I will change
    this PR from draft to regular.</del> The
    [tutorial](https://docs.argilla.io/en/latest/tutorials/notebooks/training-textclassification-transformers-pretrained.html)
    that was failing because the `admin` workspace was missing is now
    working fine.
    
    I have found others tutorials like [this
    one](https://docs.argilla.io/en/latest/tutorials/notebooks/labelling-textclassification-setfit-zeroshot.html)
    failing too but for different reasons. In this case the tutorial is
    using an old version of `argilla` Python package and is not sending the
    workspace. I have created a new issue to address these problems with our
    tutorials: #2583
    
    ---------
    
    Co-authored-by: Francisco Aranda <[email protected]>
    jfcalvo and frascuchon authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    da5b4a2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a2673b3 View commit details
    Browse the repository at this point in the history
  15. custom directive for circle

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    986053d View commit details
    Browse the repository at this point in the history
  16. UserToken component

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    0064253 View commit details
    Browse the repository at this point in the history
  17. edition user info component (in read only)

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    745dcae View commit details
    Browse the repository at this point in the history
  18. add editionuserinfo component to the content

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    763d0bc View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6fec575 View commit details
    Browse the repository at this point in the history
  20. role is admin or annotator

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    28bed7f View commit details
    Browse the repository at this point in the history
  21. remove mocked user data

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    f50d611 View commit details
    Browse the repository at this point in the history
  22. get first letter and not initial for circle

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    6ecfdcd View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    f6c928f View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    feabdd9 View commit details
    Browse the repository at this point in the history
  25. update changelog

    keithCuniah committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    40e485e View commit details
    Browse the repository at this point in the history
  26. Feat : front user settings (#2586)

    # Description
    Main branch for front part of user settings
    
    Please include a summary of the changes and the related issue. Please
    also include relevant motivation and context. List any dependencies that
    are required for this change.
    
    Closes [#2496](#2496) ui
    part
    
    **Type of change**
    
    (Please delete options that are not relevant. Remember to title the PR
    according to the type of change)
    
    - [ ] Bug fix (non-breaking change which fixes an issue)
    - [x] New feature (non-breaking change which adds functionality)
    - [ ] Breaking change (fix or feature that would cause existing
    functionality to not work as expected)
    - [ ] Refactor (change restructuring the codebase without changing
    functionality)
    - [ ] Improvement (change adding some improvement to an existing
    functionality)
    - [ ] Documentation update
    
    **How Has This Been Tested**
    
    (Please describe the tests that you ran to verify your changes. And
    ideally, reference `tests`)
    
    - [ ] Test A
    
    
    **Checklist**
    
    - [x] I have merged the original branch into my forked branch
    - [ ] I added relevant documentation
    - [x] follows the style guidelines of this project
    - [x] I did a self-review of my code
    - [ ] I made corresponding changes to the documentation
    - [x] My changes generate no new warnings
    - [ ] I have added tests that prove my fix is effective or that my
    feature works
    - [x] I have added relevant notes to the CHANGELOG.md file (See
    https://keepachangelog.com/)
    
    ---------
    
    Co-authored-by: keithCuniah <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: leiyre <[email protected]>
    Co-authored-by: frascuchon <[email protected]>
    Co-authored-by: Natalia Elvira <[email protected]>
    Co-authored-by: david <[email protected]>
    7 people authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    c976cd0 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    f8a0bdf View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    9e5b995 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. correct usernname in v-circle

    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    f176709 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b754214 View commit details
    Browse the repository at this point in the history
  3. change css user-role

    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    e964c4e View commit details
    Browse the repository at this point in the history
  4. remove last border in form group

    leire committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    f271b8d View commit details
    Browse the repository at this point in the history
  5. style user-role

    leire committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    9f901c8 View commit details
    Browse the repository at this point in the history
  6. change flex to grid user token component

    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    529a7cb View commit details
    Browse the repository at this point in the history
  7. remove obsolete file

    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    fd32c90 View commit details
    Browse the repository at this point in the history
  8. change v-html to v-text

    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    d46a442 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'feature/front-user-settings' of https://github.com/reco…

    …gnai/rubrix into feature/front-user-settings
    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    8c36a48 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    eea5521 View commit details
    Browse the repository at this point in the history
  11. fix margins with base-space

    leire committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    7ab2b0f View commit details
    Browse the repository at this point in the history
  12. param size v-circle && css dropdown user

    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    e9f4f3a View commit details
    Browse the repository at this point in the history
  13. Merge branch 'feature/front-user-settings' of https://github.com/reco…

    …gnai/rubrix into feature/front-user-settings
    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    5561225 View commit details
    Browse the repository at this point in the history
  14. update css user component

    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    ba16b80 View commit details
    Browse the repository at this point in the history
  15. update title and description usertoken component

    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    be55299 View commit details
    Browse the repository at this point in the history
  16. qa editionUserInfo component

    keithCuniah committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    a4a11f8 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. change breadcrumb "Datasets"=>"Home"

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    b31a7e0 View commit details
    Browse the repository at this point in the history
  2. remove last border and first border

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    f8a24b4 View commit details
    Browse the repository at this point in the history
  3. remove fetch user => get info from vuexorm auth

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    2c8840a View commit details
    Browse the repository at this point in the history
  4. css update

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    2b13001 View commit details
    Browse the repository at this point in the history
  5. update css

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    2bdde55 View commit details
    Browse the repository at this point in the history
  6. update css user settings

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    aab4dcb View commit details
    Browse the repository at this point in the history
  7. update css user

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    8169615 View commit details
    Browse the repository at this point in the history
  8. remove disable state && manage undefined metrics

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    a92cb0d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1fa6a6e View commit details
    Browse the repository at this point in the history
  10. add spinner to baseFeedback component

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    64ef93f View commit details
    Browse the repository at this point in the history
  11. baseFeedback component if metrics are in pending && not show delete b…

    …utton if pending metrics
    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    42c38eb View commit details
    Browse the repository at this point in the history
  12. Merge branch 'feature/2117-rules-page-performance' of https://github.…

    …com/recognai/rubrix into feature/2117-rules-page-performance
    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    53c4844 View commit details
    Browse the repository at this point in the history
  13. clean code && update feedback message

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    cfd8899 View commit details
    Browse the repository at this point in the history
  14. update CHANGELOG

    keithCuniah committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    02091a9 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. Configuration menu
    Copy the full SHA
    828daca View commit details
    Browse the repository at this point in the history
  2. remove console log

    keithCuniah committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    3e9e594 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5e905f6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dfd1a0c View commit details
    Browse the repository at this point in the history
  5. update CHANGELOG

    keithCuniah committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    f4b4661 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. css update && feedback component

    keithCuniah committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    5893446 View commit details
    Browse the repository at this point in the history
  2. update css

    keithCuniah committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    ea76b42 View commit details
    Browse the repository at this point in the history
  3. code review

    keithCuniah committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    1d07121 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dc0f4d0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1167d33 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. Configuration menu
    Copy the full SHA
    b062d10 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d4f949a View commit details
    Browse the repository at this point in the history