Skip to content

Commit 0e6cffe

Browse files
authored
Merge pull request #55 from edanalytics/fix/allow_delete_students
allow deletion of students (if permitted by credential claimset and API auth strategy)
2 parents 00603ef + a565aee commit 0e6cffe

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

lightbeam/delete.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ def delete(self):
3636
self.lightbeam.confirm_delete(endpoints)
3737

3838
for endpoint in endpoints:
39-
# it doesn't seem possible to delete students once you've sent them
40-
# (I think because other entities may have referenced them in the meantime)
41-
if endpoint=='students':
42-
self.logger.warn("data for {0} endpoint cannot be deleted (this is an Ed-Fi limitation); skipping".format(endpoint))
43-
continue
44-
4539
asyncio.run(self.do_deletes(endpoint))
4640
self.logger.info("finished processing endpoint {0}!".format(endpoint))
4741
self.logger.info(" (final status counts: {0})".format(self.lightbeam.status_counts))

lightbeam/truncate.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ def truncate(self):
2828
self.lightbeam.confirm_truncate(endpoints)
2929

3030
for endpoint in endpoints:
31-
# it doesn't seem possible to delete students once you've sent them
32-
# (I think because other entities may have referenced them in the meantime)
33-
# if endpoint=='students':
34-
# self.logger.warn("data for {0} endpoint cannot be deleted (this is an Ed-Fi limitation); skipping".format(endpoint))
35-
# continue
36-
3731
asyncio.run(self.do_truncates(endpoint))
3832
self.logger.info("finished processing endpoint {0}!".format(endpoint))
3933
self.logger.info(" (final status counts: {0})".format(self.lightbeam.status_counts))

0 commit comments

Comments
 (0)