-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTODO.txt
63 lines (46 loc) · 2.28 KB
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
- XenForo 2 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*) bbcode
All codes seen now supported. Need to create a "kitchen sink"
text from the editor to be sure we have everything.
*) Ensure all guid_url values are valid:
*) In some cases we have only url = 'showthread.php?t=53456'
or url = 'showthread.php/53456-<title>'
i.e. no actual post ID, and the thread IDs aren't the
same/valid on XF2.
To fix this we have to do a forum search on the thread title
in order to find the appropriate post to then look up the
*post* ID to fix the guid_url.
Ah, except *some* thread IDs *are* valid, so could be used to
automate some of this cleanup.
Check against
https://forums.frontier.co.uk/threads/<threadid>/ and if that
loads then grab the postid of the first post and use that in
new guid_url.
It's possible others might have been deleted.
And make sure the search output is using these guid_url values so
they'll actually work on the new forum!
Likewise we might want to update any forum URLs in post content to be
the proper format and a valid postid.
See:
SELECT id,url,guid_url FROM posts WHERE url NOT LIKE 'showthread.php/t=%p=%' AND url NOT LIKE 'showthread.php?p=%#post%' AND url NOT LIKE 'showthread.php?t=%&p=%' AND url NOT LIKE 'showthread.php/%-%?p=%#post%' ORDER BY id ASC;
(1311 rows)
Also things like:
<https://forums.frontier.co.uk/showthread.php/401661-Journal-Documentation-for-v3-0?p=6389830#post6389830>
Need to be things like:
https://forums.frontier.co.uk/posts/6389830/
Should just be a case of switching from using 'url' to 'guid_url' in
search output.
*) Last pre-XF2 posts.id is 30096
*) Ensure search works and its output is sane, i.e. URLs are in valid
formats to be useful.
*) Check any feed changes against:
1) Tiny Tiny RSS (remember same-guid's in different feed get the
same read/new state).
2) miggy IRC bot
3) Feedly
4) EDCD feedbot -> "show_sample_entry.py" script with the URL:
https://github.com/freiheit/discord_feedbot
*) 'Everything' into the config file, no hard coded 'config' values.
*) ED::DevTracker::Forums.pm to hold all the forum interaction code,
i.e. login, URL retrieval...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=