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

[WIP] Add Decred plugin. #212

Closed
wants to merge 55 commits into from
Closed

[WIP] Add Decred plugin. #212

wants to merge 55 commits into from

Conversation

marcopeereboom
Copy link
Member

No description provided.

@marcopeereboom marcopeereboom changed the title Add Decred plugin. [WIP] Add Decred plugin. Jan 16, 2018
Copy link
Contributor

@sndurkin sndurkin left a comment

Choose a reason for hiding this comment

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

I know it's not finished yet, but I looked at the code and made a couple comments inline.

type Plugin struct {
ID string `json:"id"` // Identifier
Version string `json:"version"` // Version
Settings []PluginSetting `json:"setting"` // Settings
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be "settings".

ID string `json:"id"` // Plugin identifier
Command string `json:"command"` // Command identifier
CommandID string `json:"commandid"` // User setable command identifier
Payload string `json:"payload"` // Actual command reply
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the reply need to include ID, Command and CommandID if the client already has that info?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, there can be multiple plugins.

// Obtain plugin settings
GetPlugins() ([]Plugin, error)

// Pligin pass-through command
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

@@ -2122,6 +2122,23 @@ func (g *gitBackEnd) Inventory(vettedCount, branchCount uint, includeFiles bool)
return pr, br, nil
}

// GetPlugins returns the decred plugin settings.
Copy link
Contributor

Choose a reason for hiding this comment

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

This doc should probably be more generic, like "GetPlugins returns a list of currently supported plugins and their settings."

marcopeereboom and others added 22 commits March 13, 2018 11:33
inventory is a mess; start recreating it using a map but keep old one in place for now

flesh out api some more

genericize md decoding

convert comments to use new inventory

decode voting

add changes metadata
remove b.inventory and annotate areas that need fixup

fuck you rebase
* Fix some issues with _inventory cache with unit tests.

* Fix several unit tests that are broken from refactoring inventory.

* Fix the rest of the failing www tests.
@marcopeereboom
Copy link
Member Author

Finished in #242

@marcopeereboom marcopeereboom deleted the plugin branch June 7, 2018 17:30
vibros68 pushed a commit to vibros68/politeia that referenced this pull request Aug 17, 2021
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