-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use select fields where it makes sense #4
Open
joshuapease
wants to merge
9
commits into
craft-4
Choose a base branch
from
jp/use-select-fields
base: craft-4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
16686a3
Use Select fields for properties we'd like to filter on
joshuapease 65dc694
Delete unused settings class
joshuapease 8bfa0a9
Switch plugin data to use multi-select
joshuapease cb3c345
Only update database fields if they don't exist
joshuapease f79a3be
Use a config for property updates
joshuapease 5c86035
Differentiate between Craft Version & Edition
joshuapease 1d90e78
PHPStan Level Up. Store modules as MultiSelect
joshuapease 2fa37ab
Allow modification of property type
joshuapease 66398fc
Whoops... remove debug code
joshuapease File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ includes: | |
- vendor/craftcms/phpstan/phpstan.neon | ||
|
||
parameters: | ||
level: 4 | ||
level: 9 | ||
paths: | ||
- src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace viget\phonehome\models; | ||
|
||
use craft\base\PluginInterface; | ||
|
||
/** | ||
* DTO for transferring plugin info to our Endpoints | ||
*/ | ||
class SitePayloadPlugin | ||
{ | ||
public function __construct( | ||
public readonly string $id, | ||
public readonly string $versionedId, | ||
) | ||
{ | ||
} | ||
|
||
public static function fromPluginInterface(PluginInterface $pluginInterface): self | ||
{ | ||
return new self( | ||
id: $pluginInterface->id, | ||
versionedId: $pluginInterface->id . ':' . $pluginInterface->version, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a plugin & plugin versions column.
The plugin column will let you filter by what plugins are installed by site.
But if you ever need to check for specific versions, you can also choose that.
I wish there was a way to do version greater than / less than queries. But I can't think of anything in Notion that would provide that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How sensitive is this to manipulations to the table? It might be possible to use a formula in a manually-created column but would that confuse the plugin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Custom columns seem to work fine. As long as their names don't conflict with what's in this list.