opengov-opendata / ckanext-discourse Goto Github PK
View Code? Open in Web Editor NEWCKAN + Discourse
License: GNU Affero General Public License v3.0
CKAN + Discourse
License: GNU Affero General Public License v3.0
As is done on the internal pages (group, org, package lists).
So users can also create topics on custom pages.
To indicate that a custom page should allow Discourse commenting, the CKAN administrator adds the following snippet (e.g. ">>DISCOURSE<<"??? ) to the markdown text of the page.
CKAN 2.41
psql (PostgreSQL) 9.1.19
Standard source deployment
I recieve the following error after running $python setup.py
[Sun Nov 22 22:35:14 2015] [error] Traceback (most recent call last):
[Sun Nov 22 22:35:14 2015] [error] File "/usr/lib/python2.7/site.py", line 157, in addpackage
[Sun Nov 22 22:35:14 2015] [error] exec line
[Sun Nov 22 22:35:14 2015] [error] File "", line 1, in
[Sun Nov 22 22:35:14 2015] [error] KeyError: 'ckanext'
[Sun Nov 22 22:35:14 2015] [error]
[Sun Nov 22 22:35:14 2015] [error] Remainder of file ignored
Opengraph markup should encode chars like single quote, etc.
Hi Team,
Can you provide any example for ckan-discourse extension. I have setup a discourse server and installed ckan extension on ckan server. But I not able to see any changes on my ckan server. I want to know how does the commenting look like and what issue can be for me not able to see the comments on my ckan server
Otherwise, ckanext-discourse will fail to create the topic properly in the associated Discourse instance.
Right now, when a private dataset is created in CKAN, the created Discourse topic links to the CKAN login screen, since Discourse is attempting to authenticate access to the private dataset.
Right now, the generic embed logic creates a topic that is not that detailed.
It'd be better if the topic description is a Onebox embed of the CKAN page.
It would be really helpful to see how the integration between the two apps looks for the end user. How is the forum topic linked from data set?
How is the data set linked from the forum?
Cheers!
The associated templates need to be tweaked to pass the full_url to ckanext-discourse.
Discussions on private datasets should be supported. While datasets are being reviewed internally, it can be argued that internal folks need to have a place to have those discussions before a dataset release.
This could be done by creating a separate private Discourse category to which private dataset discussions are posted.
An added bonus of this approach is that once a dataset is released, a separate topic post-release is created to which the private discussions pre-release can link to.
I have followed the instructions on the readme, and currently, I have the Discourse iframe being partly loaded on CKAN. It says 'loading discussion' with my Discourse site logo displayed, then there's a 10 second pause, the message changes to say 'error embedding'.
And the following error appears in Chrome dev console:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://discourse-site') does not match the recipient window's origin ('https://ckan-site').
Note that I have SSL enabled on both CKAN and Discourse.
Something similar to the way Discourse oneboxes GitHub links, e.g.
For CKAN, maybe metadata like organization, group, maintainer, etc. can be included in the onebox.
This needs to be implemented on https://github.com/discourse/onebox
Create a blacklist that ckanext-discourse will ignore. This is good for testing and for excluding datasets where discourse commenting is not required.
Right now, its only the HTML fragment needed to pull the Discourse JSON of a category, which is then appended to discourse.url to get the fully qualified URL of the category json, e.g.
discourse.url = https://talk.beta.nyc/
discourse.ckan_category = c/data/community-data.json
https://talk.beta.nyc/c/data/community-data.json
It should just be the human-readable name of the category, i.e.
discourse.url = https://talk.beta.nyc/
discourse.ckan_category = Community Data
cc @amercader
preventing ckanext-discourse from actually creating a discourse topic in the associated discourse instance. Instead, it will just display debug data in the iframe.
This should help avoid spam in the associated discourse instance when troubleshooting discourse integration.
Using a separate private discourse category. See #20 for details.
Right now, it only checks if the parameter is not empty.
after adding additional documentation, testing and cleaning up the code
No need to manually specify it in the CKAN ini file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.