[allura:tickets] #7935 Forum importer for allura's own export format

2020-04-13 Thread Dave Brondsema
Hi,

After merging this I noticed a minor issue, but wanted to let you know and see 
if you were interested in doing a little bit more cleanup.  
[PEP8](https://www.python.org/dev/peps/pep-0008/) is a code style guideline for 
python and there are various tools to check and to enforce it.  We're not super 
strict about it with Allura, but we like to follow the guidelines when 
possible.  `ForgeImporters/forgeimporters/tests/forge/test_discussion.py` and 
`ForgeImporters/forgeimporters/forge/discussion.py` have quite a few places 
that don't follow PEP8 exactly.  Do you want to see about tidying them up?  
Depending on your editor, you may have an option to automatically reformat the 
files.  Or you can use a tool `flake8` or `autopep8`.  In all cases, please set 
the max line length to 119 (that is the setting we use for Allura, some tools 
may pick it up automatically but some might default to a smaller width can 
cause extra line wrapping which we don't like).

Thanks!


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** closed
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Mon Apr 13, 2020 05:42 PM UTC
**Owner:** Fahri





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-04-13 Thread Dave Brondsema
- **status**: review --> closed
- **Comment**:

Done with https://forge-allura.apache.org/p/allura/git/merge-requests/334/



---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** closed
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Fri Mar 20, 2020 01:56 PM UTC
**Owner:** Fahri





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-03-20 Thread Dave Brondsema
- **status**: open --> review
- **assigned_to**: Fahri Korkmaz
- **Reviewer**: Dave Brondsema



---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** review
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Fri Mar 20, 2020 01:55 PM UTC
**Owner:** Fahri Korkmaz





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-03-20 Thread Dave Brondsema
Hi, I haven't had a chance to look at this yet and it might take several days 
more as it is a big contribution.  But I wanted to let you know I've seen it 
and will get to it when I can.  Thanks for working on this!


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Fri Mar 13, 2020 11:59 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-03-13 Thread Fahri Korkmaz
Thank for explaining this! I've just cleaned up my scripts so they match pep8 
code style guidelines and made a merge request.


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Fri Mar 06, 2020 02:47 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-03-06 Thread Dave Brondsema
* importing with a whole zip file would be nice to do, but could be a phase 2.  
It would take some additional work to be able to handle very large zip files, 
and existing importers don't handle them yet either.  When it is added, it 
would be good to add it for discussions *and* tickets and share logic between 
them.
* for tests, the /p/test project automatically is created.  And `@with_tracker` 
creates a "bugs" ticket tracker on the /p/test project.  Similarly, 
`@with_discussion` creates a "discussion" discussion tool.  As for the 
`_importer` part of the URL, I can see in the `setUp` that it added in the 
`setUp` but I don't know offhand why it does it that way.  Using the real URL 
like `/p/test/admin/ext/import/forge-discussion` definitely seems better to me. 
 And then you don't need to do anything with `_importer` in the `setUp`
* those nested posts look good now!

Nice job so far, looks like you're getting quite close to having this all ready 
:D


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Thu Mar 05, 2020 03:14 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-03-05 Thread Fahri Korkmaz
Well, I have just realized  that nested posts were still handled wrong by the 
importer. Here is a new screenshot of these posts which were imported with the 
new version of the importer.


Attachments:

- 
[topic_with_lots_of_replies.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/2dea/attachment/topic_with_lots_of_replies.png)
 (87.0 kB; image/png)


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Thu Mar 05, 2020 01:36 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-03-05 Thread Fahri Korkmaz
While creating tests for the controller I encountered another thing which I 
don't understand. I do use 
[forge/test_tracker.py](https://forge-allura.apache.org/u/fahri/allurafork/ci/master/tree/ForgeImporters/forgeimporters/tests/forge/test_tracker.py#l349)
 as an example for writing my tests. In the "test_index"-method of the 
"TestForgeTrackerImportController" class there is this path of a URL that I 
don't really understand: '/p/test/admin/bugs/_importer/'. How is this path 
assembled and from where does the "bugs" part come from?
~~~python
@with_tracker
def test_index(self):
r = self.app.get('/p/test/admin/bugs/_importer/')
self.assertIsNotNone(r.html.find(attrs=dict(name="tickets_json")))
self.assertIsNotNone(r.html.find(attrs=dict(name="mount_label")))
self.assertIsNotNone(r.html.find(attrs=dict(name="mount_point")))
~~~

I have used  another path for my tests: 
"'/p/test/admin/ext/import/forge-discussion/'". When I use this path my tests 
pass. Is this also a valid solution?

[**This is my test for the 
Controller:**](https://forge-allura.apache.org/u/fahri/allurafork/ci/master/tree/ForgeImporters/forgeimporters/tests/forge/test_discussion.py#l1191)

~~~python
class TestForgeDiscussionController(TestController, TestCase):
 
 def setUp(self):
 super(TestForgeDiscussionController, self).setUp()
 from forgediscussion.forum_main import ForumAdminController
 ForumAdminController._importer = \ 
discussion.ForgeDiscussionImportController(discussion.ForgeDiscussionImporter())


 @with_discussion
 def test_index(self):
 r = self.app.get('/p/test/admin/ext/import/forge-discussion/')
 self.assertIsNotNone(r.html.find(attrs=dict(name="discussions_json")))
 self.assertIsNotNone(r.html.find(attrs=dict(name="mount_label")))
 self.assertIsNotNone(r.html.find(attrs=dict(name="mount_point")))


 @with_discussion
 @mock.patch('forgeimporters.forge.discussion.save_importer_upload')
 @mock.patch('forgeimporters.base.import_tool')
 def test_create(self, import_tool, siu):
 project = M.Project.query.get(shortname='test')
 params = {
 'discussions_json': webtest.Upload('discussions.json', b'{"key": 
"val"}'),
 'mount_label': 'mylabel',
 'mount_point': 'mymount',
 }
 r = self.app.post('/p/test/admin/ext/import/forge-discussion/create', 
params,
   status=302)
 self.assertEqual(r.location, 'http://localhost/p/test/admin/')
 siu.assert_called_once_with(project, 'discussions.json', '{"key": 
"val"}')
 self.assertEqual(
 'mymount', import_tool.post.call_args[1]['mount_point'])
 self.assertEqual(
 'mylabel', import_tool.post.call_args[1]['mount_label'])


 @with_discussion
 @mock.patch('forgeimporters.forge.discussion.save_importer_upload')
 @mock.patch('forgeimporters.base.import_tool')
 def test_create_limit(self, import_tool, siu):
 project = M.Project.query.get(shortname='test')
 project.set_tool_data('ForgeDiscussionImporter', pending=1)
 ThreadLocalORMSession.flush_all()
 params = {
 'discussions_json': webtest.Upload('discussions.json', b'{"key": 
"val"}'),
 'mount_label': 'mylabel',
 'mount_point': 'mymount',
 }
 r = self.app.post('/p/test/admin/ext/import/forge-discussion/create', 
params,
   status=302).follow()
 self.assertIn('Please wait and try again', r)
 self.assertEqual(import_tool.post.call_count, 0)
~~~



---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Thu Mar 05, 2020 09:44 AM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-03-04 Thread Dave Brondsema
Hi,

For the post with attachments, you don't necessarily need to reach the original 
URL.  Forum exports may or may not include a copy of the attachments, in this 
case they did, so you can use `"path": 
"discussion/5e32098a07ae3108f6c98c23/251636cb3f/be44/keepass.png",` to locate 
the attachment file within the zip file.

For the post with lots of replies, some of the comments should be nested 
replies.  If you look at `"slug": "0d1d/d421/f37d"` for example in the json, 
that represents it is a nested child of `"slug": "0d1d/d421"` which is a nested 
child of `"slug": "0d1d"`.  If you can preserve the original slugs when 
creating the comments then I think that slug format should automatically make 
them be shown as nested.

Otherwise looking pretty great!

-Dave



---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Fri Feb 28, 2020 02:55 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-02-28 Thread Fahri Korkmaz
Hey Dave,
I've imported the last export that you have sent to me. I've added some 
screenshots as attachments.

For the post with attachments I have used some other attachments. Because the 
URLs in the export weren't reachable anymore (the server reponded with a 404).


Attachments:

- 
[announcement_test_post.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/announcement_test_post.png)
 (63.2 kB; image/png)
- 
[attachments_test_post.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/attachments_test_post.png)
 (84.2 kB; image/png)
- 
[developer_chat_forum.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/developer_chat_forum.png)
 (50.2 kB; image/png)
- 
[discussion.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/discussion.png)
 (42.7 kB; image/png)
- 
[from_anonymous_test_post.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/from_anonymous_test_post.png)
 (58.3 kB; image/png)
- 
[general_discussion.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/general_discussion.png)
 (63.6 kB; image/png)
- 
[markdown_test_post.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/markdown_test_post.png)
 (69.6 kB; image/png)
- 
[sitcky_post.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/sitcky_post.png)
 (62.5 kB; image/png)
- 
[topic_with_lots_of_replies_test_post.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/topic_with_lots_of_replies_test_post.png)
 (67.7 kB; image/png)
- 
[unicode_test_post.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/fb24/attachment/unicode_test_post.png)
 (63.4 kB; image/png)


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Thu Feb 27, 2020 09:06 AM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-02-26 Thread Fahri Korkmaz
Thank you Dave!
Unfortunately I have the next problem: If I try to clone or pull from my 
repository at forge allura I get this error:
~~~
fahri@debian:~/git/fahri-allurafork$ git pull
fatal: unable to access 
'https://forge-allura.apache.org/git/u/fahri/allurafork/': The requested URL 
returned error: 500
~~~

But it is still possible to clone the "master" code.




---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Tue Feb 25, 2020 02:27 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-02-25 Thread Dave Brondsema
If update to the latest 'master' code, that works with new versions of Mongodb 
now ([#8348] is fixed), so you can test your own exports if you want.


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Wed Jan 29, 2020 11:00 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-01-29 Thread Dave Brondsema
Here's another forum export, illustrating a number of different situations.  
Some things (like sticky & announcement posts) don't seem to be marked in 
export so guess you can't do anything about that during the import.  Should be 
added to the export/API at some point.


Attachments:

- 
[test-backup-2020-01-29-224904.zip](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/359f/attachment/test-backup-2020-01-29-224904.zip)
 (40.5 kB; application/zip)


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Wed Jan 22, 2020 07:19 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-01-22 Thread Dave Brondsema
Ok the error you got looks to be something that changed with mongodb 3.6 and we 
haven't updated for.  I created ticket [#8348] for that.  You could try a prior 
version of mongo, or work on code changes for [#8348] (if you do that, please 
make sure they are separate commits from import work, so it could be merged 
separately)

Exports on  https://forge-allura.apache.org aren't fully enabled.  They run, 
but we don't have any way set up for users to access and download them.

I'll get back to you again before long with more export examples.  Exciting to 
see you got something working!




---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Sat Jan 18, 2020 11:50 AM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2020-01-18 Thread Fahri Korkmaz
Hi Dave,

the current version of the discussion importer is able to import this example 
(This was the latest commit: 
https://forge-allura.apache.org/u/fahri/allurafork/ci/063507d5a23b611f3537f3434b4a7c172650b127/).
 I have added some screenshots as attachment.

I would be glad if you send me more examples of a discussion export. Thanks in 
advance :)


Attachments:

- 
[forums.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/c25f/attachment/forums.png)
 (17.5 kB; image/png)
- 
[post.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/c25f/attachment/post.png)
 (58.3 kB; image/png)
- 
[topic.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/c25f/attachment/topic.png)
 (30.7 kB; image/png)


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Fri Jan 17, 2020 11:08 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Re: [allura:tickets] #7935 Forum importer for allura's own export format

2020-01-18 Thread Fahri Korkmaz
Hi Dave,

Thanks for the example export of a discussion.

Yes I do get an error. I get the following error after clicking the
"Export"-Button at the admin section:

Traceback (most recent call last):
  File "/home/fahri/env-allura/lib/python2.7/site-packages/tg/wsgiapp.py",
line 120, in __call__
response = self.wrapped_dispatch(controller, environ, context)
  File "/home/fahri/env-allura/lib/python2.7/site-packages/tg/wsgiapp.py",
line 285, in _dispatch
return controller(environ, context)
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/tg/controllers/dispatcher.py",
line 119, in __call__
response = self._perform_call(context)
  File "/home/fahri/src/fahri-allurafork/Allura/allura/lib/base.py", line
42, in _perform_call
return super(WsgiDispatchController, self)._perform_call(context)
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/tg/controllers/dispatcher.py",
line 108, in _perform_call
r = self._call(action, params, remainder=remainder, context=context)
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/tg/controllers/decoratedcontroller.py",
line 131, in _call
output = controller_caller(context_config, bound_controller_callable,
remainder, params)
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/tg/decorators.py", line
44, in _decorated_controller_caller
return application_controller_caller(tg_config, controller, remainder,
params)
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/tg/configuration/app_config.py",
line 127, in call_controller
return controller(*remainder, **params)
  File
"/home/fahri/src/fahri-allurafork/Allura/allura/ext/admin/admin_main.py",
line 680, in export
"$project": {"_id": 0, "total_size": {"$divide": ["$total_size",
100]}}
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/timermiddleware/__init__.py",
line 120, in wrapper
return self.run_and_log(func, inst, *args, **kwargs)
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/timermiddleware/__init__.py",
line 151, in run_and_log
retval = func(*args, **kwargs)
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/pymongo/collection.py",
line 1397, in aggregate
"aggregate", self.__name, **command_kwargs)
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/pymongo/database.py",
line 345, in _command
msg, allowable_errors)
  File
"/home/fahri/env-allura/lib/python2.7/site-packages/pymongo/helpers.py",
line 182, in _check_command_response
raise OperationFailure(msg % errmsg, code, response)
OperationFailure: command SON([('aggregate', u'attachment.files'),
('pipeline', [{'$match': {'_id': {'$in': []}}}, {'$group': {'total_size':
{'$sum': '$length'}, '_id': 'total'}}, {'$project': {'total_size':
{'$divide': ['$total_size', 100]}, '_id': 0}}])]) on namespace
project-data.$cmd failed: The 'cursor' option is required, except for
aggregate with the explain argument

Am Sa., 18. Jan. 2020 um 00:08 Uhr schrieb Dave Brondsema <
d...@brondsema.net>:

> Hi Fahri,
>
> I saw your question on IRC about a forum export example, but then you
> disconnected. Here's a *super simple* one you can start with. I can give
> you more complex ones, with attachments, different users, etc, if you want.
> Also what problem are you getting with your own export? Does the taskd
> process log an error?
>
> Attachments:
>
>- test-discussion-backup.zip
>
> 
>(895 Bytes; application/zip)
>
> --
>
> * [tickets:#7935] 
> Forum importer for allura's own export format*
>
> *Status:* open
> *Milestone:* unreleased
> *Labels:* import
> *Created:* Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
> *Last Updated:* Sun Dec 15, 2019 03:16 AM UTC
> *Owner:* nobody
> --
>
> Sent from forge-allura.apache.org because dev@allura.apache.org is
> subscribed to https://forge-allura.apache.org/p/allura/tickets/
>
> To unsubscribe from further messages, a project admin can change settings
> at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if
> this is a mailing list, you can unsubscribe from the mailing list.
>


[allura:tickets] #7935 Forum importer for allura's own export format

2020-01-17 Thread Dave Brondsema
Hi Fahri,

I saw your question on IRC about a forum export example, but then you 
disconnected.  Here's a *super simple* one you can start with.  I can give you 
more complex ones, with attachments, different users, etc, if you want.  Also 
what problem are you getting with your own export?  Does the `taskd` process 
log an error?




Attachments:

- 
[test-discussion-backup.zip](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/64b57215/6e81/attachment/test-discussion-backup.zip)
 (895 Bytes; application/zip)


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Sun Dec 15, 2019 03:16 AM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2019-12-13 Thread Fahri Korkmaz
Hey, I am currently working on this.


---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Tue Jul 21, 2015 06:53 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7935 Forum importer for allura's own export format

2015-07-21 Thread Dave Brondsema



---

** [tickets:#7935] Forum importer for allura's own export format**

**Status:** open
**Milestone:** unreleased
**Labels:** import 
**Created:** Tue Jul 21, 2015 06:53 PM UTC by Dave Brondsema
**Last Updated:** Tue Jul 21, 2015 06:53 PM UTC
**Owner:** nobody





---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.