效价 API,课程删除问题
Valence API, Course Deletion Issue
多年来我一直在使用 valence,但 运行 撞墙了,无法解决问题。我正在尝试删除课程但收到禁止消息。
这一切都运行良好,并且经过测试并在生产环境中 运行 运行良好。没有更改代码,但现在删除功能不起作用。
添加课程、创建用户、删除用户、注册用户都可以。
我们目前运行宁:
- 学习环境版本:10.5.0
- Valance 版本:1.4
- Valence SDK PHP 版本:1.6.0
这是我的删除请求的代码片段:
global $curl_options;
$func = new mphs_functions();
$admin = $func->mphs_authenticate_admin_access();
$ch = curl_init();
curl_setopt_array($ch, $curl_options);
switch($environment) {
case 'none':
$uri = $admin->createAuthenticatedUri('/d2l/api/'.$request, 'DELETE');
break;
default:
$uri = $admin->createAuthenticatedUri('/d2l/api/'.$environment.'/'.VALENCE_VER.'/'.$request, 'DELETE');
}
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
$response = curl_exec($ch);
//$response = json_decode($response, true);
curl_close($ch);
return $response;
这是我收到的关于这个问题的回复:
Hello Ian,
This Issue is being caused due to bug# PRB0049748 >
Course Deletion > Users with Permission to Delete Courses cannot do so
using the API
This bug is currently being investigated by our
Development Teams, unfortunately we do not have an eta on the fix yet,
As a work around, you would need to delete the courses from the UI.
Do let me know if you have any questions or concerns. Thanks
我的回复:
Deleting from the UI is not an acceptable solution this is a
production application and would take many hours daily to manually
delete each course.
I need a eta on the fix, or another solution to
the issue.
Also where can the list of bugs and know issues you have
posted 'PRB0049748'?
有回复:
Hi Ian,
The Bug is under review by our Development Teams, unfortunately we do not have > an eta on the fix yet.
The list of bugs is not available to clients but is an internal list within D2L.
Clients are provided with a list of bugs that have been fixed in a specific version in D2L Community.
Our apologies for the inconvenience. Do let me know if you have any questions or concerns. Thanks
死胡同,希望我能早点知道这个错误,我可以事先解决这个问题。老样子。
我的解决方案
问题的解决方法很简单,我要做的就是从课程中取消指定用户的注册,保留删除功能,直到它在某个不确定的未来被修复。
现在我所要做的就是联系过去一个月内尝试删除课程的每个人,并确保他们仍然希望删除该课程。下周我的盘子里有很多不需要的工作!!
顺便插一句:上面提到的 PRB 是在 10.5.0 中发现的,并在 10.5.3 中得到修复。用户现在可以使用 Brightspace API 删除课程设置 [和课程模板],只要他们在组织级别具有 "Delete Course Offerings and Templates" 权限。
多年来我一直在使用 valence,但 运行 撞墙了,无法解决问题。我正在尝试删除课程但收到禁止消息。
这一切都运行良好,并且经过测试并在生产环境中 运行 运行良好。没有更改代码,但现在删除功能不起作用。
添加课程、创建用户、删除用户、注册用户都可以。
我们目前运行宁:
- 学习环境版本:10.5.0
- Valance 版本:1.4
- Valence SDK PHP 版本:1.6.0
这是我的删除请求的代码片段:
global $curl_options;
$func = new mphs_functions();
$admin = $func->mphs_authenticate_admin_access();
$ch = curl_init();
curl_setopt_array($ch, $curl_options);
switch($environment) {
case 'none':
$uri = $admin->createAuthenticatedUri('/d2l/api/'.$request, 'DELETE');
break;
default:
$uri = $admin->createAuthenticatedUri('/d2l/api/'.$environment.'/'.VALENCE_VER.'/'.$request, 'DELETE');
}
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
$response = curl_exec($ch);
//$response = json_decode($response, true);
curl_close($ch);
return $response;
这是我收到的关于这个问题的回复:
Hello Ian,
This Issue is being caused due to bug# PRB0049748 > Course Deletion > Users with Permission to Delete Courses cannot do so using the API
This bug is currently being investigated by our Development Teams, unfortunately we do not have an eta on the fix yet, As a work around, you would need to delete the courses from the UI.
Do let me know if you have any questions or concerns. Thanks
我的回复:
Deleting from the UI is not an acceptable solution this is a production application and would take many hours daily to manually delete each course.
I need a eta on the fix, or another solution to the issue.
Also where can the list of bugs and know issues you have posted 'PRB0049748'?
有回复:
Hi Ian,
The Bug is under review by our Development Teams, unfortunately we do not have > an eta on the fix yet.
The list of bugs is not available to clients but is an internal list within D2L.
Clients are provided with a list of bugs that have been fixed in a specific version in D2L Community.
Our apologies for the inconvenience. Do let me know if you have any questions or concerns. Thanks
死胡同,希望我能早点知道这个错误,我可以事先解决这个问题。老样子。
我的解决方案
问题的解决方法很简单,我要做的就是从课程中取消指定用户的注册,保留删除功能,直到它在某个不确定的未来被修复。
现在我所要做的就是联系过去一个月内尝试删除课程的每个人,并确保他们仍然希望删除该课程。下周我的盘子里有很多不需要的工作!!
顺便插一句:上面提到的 PRB 是在 10.5.0 中发现的,并在 10.5.3 中得到修复。用户现在可以使用 Brightspace API 删除课程设置 [和课程模板],只要他们在组织级别具有 "Delete Course Offerings and Templates" 权限。