Azure / Azure/azure-functions-durable-python

Improve static safety of repo by using generic types and custom constructors

Open
#231 1 comment 0 reactions 0 assignees View on GitHub
Enhancement fixed-in-v2 P2
Dominant language
Python
Stars
157
Forks
70
Avg merge
2d 10h
Merged PRs (30d)
2

Description

As per our discussion here: https://github.com/Azure/azure-functions-durable-python/pull/184#pullrequestreview-544266683

Data such as the Entity batch array would be safer to use if registered as their own datatype. This way, we can prevent invalid operations across the codebase.

We should do a scan of the codebase and improve all the cases where custom types could be used to prevent invalid operation.

Contributor guide

Open the contributing guide

Research direction

Start with the discussion in pull request 184, especially the linked review, and inspect the Entity batch array example. Then scan the codebase for other places where custom types or constructors could prevent invalid operations. Done means the relevant data structures use safer types consistently across the codebase.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.