Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
To Continue The Above Thought, How Do I Get A User'S Name From The User'S Id, But Through The Rest Api? Specifically I'D Like To Know How To Get This Object

To continue the above thought, how do I get a user's name from the user's ID, but through the REST API?
Specifically I'd like to know how to get this object None

  
  
Posted one month ago
Votes Newest

Answers 10


I'm afraid I don't really know, you could check out the user settings in the UI, top right corner on the user icon, maybe there is something there, but I didn't really find anything to that extent there myself.

  
  
Posted one month ago

Thanks again 🙌 , I managed to get the user's name like so

from clearml.backend_api.session.client import APIClient

client = APIClient()
task = client.tasks.get...
user_response = client.session.send_request(
    "users", "get_by_id", json={"user": task.user}
).json()
user_name = user_response["data"]["user"]["name"]
  
  
Posted one month ago

      {
        "id": "c2e33466fd9de1a0d2be8d803ad4fbed",
        "company": "d1bd92a3b039400cbafc60a7a5b1e52b",
        "name": "John Doe",
        "family_name": "John",
        "given_name": "Doe",
        "created": "2024-09-24T06:13:59.956000+00:00"
      }

this is how the object looks like

  
  
Posted one month ago

For my use case I poll tasks.get_all which returns an object that contains the user ID: None

  
  
Posted one month ago

I will then assume that there is a users.get_by_id as well? Fingers crossed! Thanks!
That said it would be great if they could add it to the documentation.

  
  
Posted one month ago

correct, but!
I wrote a script that pulls tasks and limit for user
so I'm looking for users to knows their own id in advance

  
  
Posted one month ago

yep that was my approached with no luck so far
hopefully someone from the ClearML dev team can give their input on this

  
  
Posted one month ago

for some reason it's not in REST API docs, but I used
users.get_all

  
  
Posted one month ago

how do you know the ID?
I'm looking for this ...

  
  
Posted one month ago

in the UI I also see the display name, so I pulled all the users info, and match name to id

  
  
Posted one month ago
100 Views
10 Answers
one month ago
one month ago
Tags