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

fix: handle nil pointers in deepcopy #1195

Merged
merged 3 commits into from
Apr 8, 2024
Merged

fix: handle nil pointers in deepcopy #1195

merged 3 commits into from
Apr 8, 2024

Conversation

matt2e
Copy link
Collaborator

@matt2e matt2e commented Apr 8, 2024

Previously a deepcopy involving nil pointers would end up with a pointer to a zero value.

Needed as part of #1155

@alecthomas alecthomas mentioned this pull request Apr 8, 2024
@matt2e matt2e mentioned this pull request Apr 8, 2024
14 tasks
Copy link
Collaborator

@alecthomas alecthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good if this had some tests?

@matt2e matt2e force-pushed the matt2e/deepcopy branch from bec5619 to 7c41499 Compare April 8, 2024 05:38
@matt2e matt2e merged commit 3a0415f into main Apr 8, 2024
12 checks passed
@matt2e matt2e deleted the matt2e/deepcopy branch April 8, 2024 05:47
matt2e added a commit that referenced this pull request Apr 15, 2024
- [x] Schema changes
- [x] Module validation
- [x] Support multiple controllers using hash ring
- [x] DB indexes
- [x] Tests
    - [x] CronJobs Service
    - [x] cron lib
    - [x] schema changes

Separating into different PRs:
- [x] cron implementation: #1194
- [x] deepcopy: #1195
- [x] metadata changes #1216
- [x] db level changes: #1229 
- [ ] Afterwards: ftl-examples
- [ ] Afterwards: add event for it to show in web console

#1141
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants