CTFd / CTFd/CTFd

Deprecate automatic migration location detection for plugins

Open
#2,178 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.8k
Forks
2.8k
Avg merge
1d 6h
Merged PRs (30d)
5

Description

https://github.com/CTFd/CTFd/blob/ae29dca881a0b1365be1e7ba639d8b36cac30ebc/CTFd/plugins/migrations.py#L56-L62

This strategy of automatically detecting the caller plugin in order to be able to apply migrations is somewhat fragile. If we could do it some other way it would be great but I think we should just deprecate this functionality and let the plugin request its own migrations.

Note that this strategy is used in multiple plugin migration functions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.