Skip to content

Restrict the remaining V4 API endpoints to authenticated users #6258

@albertisfu

Description

@albertisfu

Describe the issue.

In #6249 we blocked the main impacted API endpoints. However, we still need to restrict the following endpoints and update the API changelog.

Audio:

  • AudioViewSet

People:

  • PersonDisclosureViewSet
  • PersonViewSet
  • PositionViewSet
  • RetentionEventViewSet
  • EducationViewSet
  • SchoolViewSet
  • PoliticalAffiliationViewSet
  • SourceViewSet
  • ABARatingViewSet

Search:

  • OriginatingCourtInformationViewSet
  • CourtViewSet
  • OpinionsCitedViewSet
  • SearchV4ViewSet

Disclosures:

  • AgreementViewSet
  • DebtViewSet
  • FinancialDisclosureViewSet
  • GiftViewSet
  • InvestmentViewSet
  • NonInvestmentIncomeViewSet
  • PositionViewSet
  • ReimbursementViewSet
  • SpouseIncomeViewSet

It's a good idea to split the work into different PRs so it's easier to review and fix tests.

We should also fix the generic test runner error that often occurs and hides the failing tests.

multiprocessing.pool.MaybeEncodingError: Error sending result: '(183, [('startTest', 0), ('addDuration', 0, 0.049252753000018856), ('addSuccess', 0), ('stopTest', 0), ('startTest', 1), ('addDuration', 1, 0.040155106000042906), ('addSuccess', 1), ('stopTest', 1), ('startTest', 2), ('addDuration', 2, 0.04974200000003748), ('addSuccess', 2), ('stopTest', 2), ('startTest', 3), ('addDuration', 3, 0.052190468000048895), ('addSuccess', 3), ('stopTest', 3), ('startTest', 4), ('addDuration', 4, 0.14158253599998716), ('addSuccess', 4), ('stopTest', 4), ('startTest', 5), ('addDuration', 5, 0.03956204999997226), ('addSuccess', 5), ('stopTest', 5), ('startTest', 6), ('addDuration', 6, 0.9321185519999062), ('addSuccess', 6), ('stopTest', 6), ('startTest', 7), ('addDuration', 7, 0.44426222799995685), ('addSuccess', 7), ('stopTest', 7), ('startTest', 8), ('addDuration', 8, 0.041108146999931705), ('addSuccess', 8), ('stopTest', 8), ('startTest', 9), ('addDuration', 9, 0.05254403699996146), ('addSuccess', 9), ('stopTest', 9), ('startTest', 10), ('addDuration', 10, 0.0649155859999837), ('addSuccess', 10), ('stopTest', 10), ('startTest', 11), ('addDuration', 11, 0.04525529700003972), ('addSuccess', 11), ('stopTest', 11), ('startTest', 12), ('addDuration', 12, 0.04238769799997044), ('addSuccess', 12), ('stopTest', 12), ('startTest', 13), ('addDuration', 13, 0.03890388599995731), ('addSuccess', 13), ('stopTest', 13), ('startTest', 14), ('addDuration', 14, 0.03975175200002923), ('addSuccess', 14), ('stopTest', 14), ('startTest', 15), ...

Related Issue

No response

Screenshots

No response

What type of issue is this?

Research

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Buffer Zone ✏️

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions