Update SampleTracker
to support dynamic activePgroup
Enhanced the `SampleTracker` component to accept and utilize an `activePgroup` prop, allowing dynamic filtering of data based on the current project group. Adjusted related polling and data fetching logic to respond to changes in `activePgroup`. Removed excessive code from the test notebook for cleanup.
This commit is contained in:
@ -528,8 +528,8 @@
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-02-26T13:17:13.591355Z",
|
||||
"start_time": "2025-02-26T13:17:13.561947Z"
|
||||
"end_time": "2025-02-26T16:15:33.052345Z",
|
||||
"start_time": "2025-02-26T16:15:33.022632Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
@ -560,6 +560,7 @@
|
||||
" headers = {\n",
|
||||
" \"accept\": \"application/json\"\n",
|
||||
" }\n",
|
||||
" comment = \"before loop centering\"\n",
|
||||
"\n",
|
||||
" # Set verify=False to bypass certificate verification (only use in development)\n",
|
||||
" response = requests.post(url, headers=headers, files=files, verify=False)\n",
|
||||
@ -580,7 +581,7 @@
|
||||
"text": [
|
||||
"API Response:\n",
|
||||
"200\n",
|
||||
"{'pgroup': 'p20001', 'sample_id': 16, 'filepath': 'images/p20001/2025-02-26/Dewar One/PUCK-001/16/IMG_1942.jpg', 'status': 'active', 'comment': None, 'id': 3}\n"
|
||||
"{'pgroup': 'p20001', 'sample_id': 16, 'filepath': 'images/p20001/2025-02-26/Dewar One/PUCK-001/16/IMG_1942.jpg', 'status': 'active', 'comment': None, 'id': 4}\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -592,7 +593,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"execution_count": 88
|
||||
"execution_count": 89
|
||||
},
|
||||
{
|
||||
"metadata": {},
|
||||
|
Reference in New Issue
Block a user