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

add proctoring to credentials #14293

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a1d4116
connect to proc360 api
usamabinnadeem-10 Sep 11, 2024
a8dae77
app apis for proctor360
usamabinnadeem-10 Sep 11, 2024
669338c
Refactor ProctorAPI class to handle student sessions and create/updat…
usamabinnadeem-10 Sep 12, 2024
2831f50
updates
usamabinnadeem-10 Sep 12, 2024
c2ab211
fixes
usamabinnadeem-10 Sep 12, 2024
965b70d
Refactor ProctorAPI class to handle student sessions and create/updat…
usamabinnadeem-10 Sep 12, 2024
577292a
Refactor ProctorAPI class to handle student sessions and create/updat…
usamabinnadeem-10 Sep 13, 2024
153eb94
Dummy commit
usamabinnadeem-10 Sep 13, 2024
ede1329
capture errors using sentry
usamabinnadeem-10 Sep 13, 2024
b9e05da
catch errors
usamabinnadeem-10 Sep 13, 2024
77d9480
fix a bug in retrying request
usamabinnadeem-10 Sep 16, 2024
68c382a
dummy commit
usamabinnadeem-10 Sep 16, 2024
dae9adf
Update api.py dummy
usamabinnadeem-10 Sep 16, 2024
3d38179
fix bugs in scheduling/proctoring
usamabinnadeem-10 Sep 18, 2024
1e2023b
fix python linters
usamabinnadeem-10 Sep 18, 2024
3c66e98
fix linters
usamabinnadeem-10 Sep 18, 2024
3299a8d
update site.yaml
usamabinnadeem-10 Sep 18, 2024
c3a191b
Update PROCTOR360_APP_SECRET and PROCTOR360_APP_ID in site.yaml
usamabinnadeem-10 Sep 19, 2024
c51c168
fix site.yaml issues
abhigyanghosh30 Sep 19, 2024
769fd53
some more error fix
abhigyanghosh30 Sep 19, 2024
58edff9
bug fix in exam_date_time
usamabinnadeem-10 Sep 19, 2024
e3ec0fe
Update PROCTOR360_BASE_URL in proctor API
usamabinnadeem-10 Sep 19, 2024
d8fb462
Refactor ProctorAPI authentication method
usamabinnadeem-10 Sep 19, 2024
fca2dae
use flask session for token and add system status for proc api in das…
usamabinnadeem-10 Sep 20, 2024
cddd672
Refactor ProctorAPI get_system_status method to handle missing app cr…
usamabinnadeem-10 Sep 20, 2024
085e49d
Refactor ProctorAPI get_system_status method to handle missing app cr…
usamabinnadeem-10 Sep 20, 2024
68bd626
bug fix in rescheduling exam
usamabinnadeem-10 Sep 20, 2024
03f72ce
dummy commit
usamabinnadeem-10 Sep 20, 2024
59a78f9
Update views.py
usamabinnadeem-10 Sep 20, 2024
ca5b691
Fix URL concatenation in cred_schedule method
usamabinnadeem-10 Sep 20, 2024
3380d41
Add optional key "exam_link" to ProctorAPI class
usamabinnadeem-10 Sep 20, 2024
24208fa
fix errors in creating proc session on exam
usamabinnadeem-10 Sep 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions konf/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@ env:
key: api-key
name: trueability

- name: PROCTOR360_BASE_URL
value: https://prod1ext.proctor360.com

- name: PROCTOR360_APP_SECRET
secretKeyRef:
key: app-secret
name: proctor360

- name: PROCTOR360_APP_ID
secretKeyRef:
key: app-id
name: proctor360

memoryLimit: 512Mi

extraHosts:
Expand Down Expand Up @@ -275,7 +288,20 @@ production:
secretKeyRef:
key: api-key
name: trueability

- name: PROCTOR360_BASE_URL
value: https://prod1ext.proctor360.com

- name: PROCTOR360_APP_SECRET
secretKeyRef:
key: app-secret
name: proctor360

- name: PROCTOR360_APP_ID
secretKeyRef:
key: app-id
name: proctor360

- name: MARKETO_API_CLIENT
secretKeyRef:
key: api_client
Expand Down Expand Up @@ -667,6 +693,19 @@ staging:
key: api-key
name: trueability

- name: PROCTOR360_BASE_URL
value: https://prod1ext.proctor360.com

- name: PROCTOR360_APP_SECRET
secretKeyRef:
key: app-secret
name: proctor360

- name: PROCTOR360_APP_ID
secretKeyRef:
key: app-id
name: proctor360

- name: TA_WEBHOOK_API_KEY
secretKeyRef:
key: webhook-secret
Expand Down Expand Up @@ -803,6 +842,19 @@ staging:
key: api-key
name: trueability

- name: PROCTOR360_BASE_URL
value: https://prod1ext.proctor360.com

- name: PROCTOR360_APP_SECRET
secretKeyRef:
key: app-secret
name: proctor360

- name: PROCTOR360_APP_ID
secretKeyRef:
key: app-id
name: proctor360

- name: TA_WEBHOOK_API_KEY
secretKeyRef:
key: webhook-secret
Expand Down Expand Up @@ -1137,6 +1189,19 @@ demo:
key: api-key
name: trueability

- name: PROCTOR360_BASE_URL
value: https://prod1ext.proctor360.com

- name: PROCTOR360_APP_SECRET
secretKeyRef:
key: app-secret
name: proctor360

- name: PROCTOR360_APP_ID
secretKeyRef:
key: app-id
name: proctor360

- name: CANONICAL_LOGIN_URL
value: https://login.ubuntu.com/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ const Sidebar = () => {

const systemStatus = useMemo(() => {
const status: {
[key in "Trueability" | "Contracts"]: boolean;
[key in "Trueability" | "Contracts" | "Proctor360"]: boolean;
} = {
Trueability: false,
Contracts: false,
Proctor360: false,
};

if (statuses && !isError) {
const { ta_status, contracts_status } = statuses;
const { ta_status, contracts_status, proctor_status } = statuses;
status["Trueability"] = !ta_status?.error;
status["Contracts"] = !contracts_status?.error;
status["Proctor360"] = !proctor_status?.error;
}
return status;
}, [statuses]);
Expand Down Expand Up @@ -201,6 +203,26 @@ const Sidebar = () => {
</div>
</div>
</li>
<li className="p-side-navigation__item">
<div className="p-side-navigation__link">
<span className="p-side-navigation__label">
Proctor 360
</span>
<div className="p-side-navigation__status">
{isLoading ? (
<i className="p-icon--spinner u-animation--spin is-light"></i>
) : (
<i
className={`p-icon--${
systemStatus["Proctor360"]
? "success"
: "error"
} is-light`}
></i>
)}
</div>
</div>
</li>
</ul>
</li>
</ul>
Expand Down
Loading
Loading