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

Improve tooling and backend for creating and working with knowledge posts #308

Merged
merged 3 commits into from
Oct 4, 2018

Conversation

matthewwardrop
Copy link
Collaborator

@matthewwardrop matthewwardrop commented Jul 23, 2017

This PR begins work on improving the user experience when working with knowledge posts. This PR utilises the portable knowledge posts introduced in earlier work to act as the repository-independent representation of knowledge post that can the be added to one or more repositories at whim.

  • Add new script kp for interacting with knowledge posts in their new native .kp format (will replace knowledge_repo for these tasks)
    • kp <post_path> from <source_path> [--format <format>] [--src *args]
    • kp <post_path> to <target_path> [--format <format>]
    • kp <post_path> preview
    • kp <post_path> submit [<repo_url>] repo_path [--update] [--message <message>]
  • Added new FolderKnowledgeRepository class for local filesystem access

The FolderKnowledgeRepository is used for previews of knowledge posts that can now be located anywhere on your hard drive. Unless explicitly requested by referencing the repository using the file:// protocol, it will automatically be replaced by a GitKnowledgeRepository if a '.git' folder is found within it, ensuring backwards compatibility.

In the future we can extend this new tooling with such functionality as edit and create.

Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

Build knowledge-repo 1.0.573 completed (commit 90d0803e86 by @)

@matthewwardrop
Copy link
Collaborator Author

@danfrankj Build errors are unrelated to this change (conda issues related to R sources).

@AppVeyorBot
Copy link

Build knowledge-repo 1.0.575 completed (commit 45d239e113 by @)

@AppVeyorBot
Copy link

@matthewwardrop matthewwardrop merged commit 2201745 into master Oct 4, 2018
@matthewwardrop matthewwardrop deleted the mw_retooling branch October 4, 2018 16:56
tanuj208 pushed a commit to ElucidataInc/knowledge-repo that referenced this pull request Jun 6, 2019
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.

None yet

3 participants