Page MenuHomePhabricator

Some projects get lost
Closed, ResolvedPublicBUG REPORT

Description

2015-02-20 19:54:03,511 - wikibugs.wb2-phab - DEBUG - Processing {"class": "PhabricatorApplicationTransactionFeedStory", "epoch": 1424462042, "authorPHID": "PHID-USER-o
etk6bbl6omm354ejz3b", "chronologicalKey": "6118017887628045544", "data": {"objectPHID": "PHID-TASK-ryefpeh4e5nwl4wwisf6", "transactionPHIDs": ["PHID-XACT-TASK-hzmh45gmt
jqtj7p"]}}
2015-02-20 19:54:03,838 - wikibugs.wb2-phab - DEBUG - maniphest.info for 87282 = {"id": "87282", "phid": "PHID-TASK-ryefpeh4e5nwl4wwisf6", "authorPHID": "PHID-USER-oetk
6bbl6omm354ejz3b", "ownerPHID": null, "ccPHIDs": ["PHID-USER-lluzkul4z7us4sxkayss", "PHID-USER-3neel27i7dyu62jbbx2l", "PHID-USER-hyfm4swq76s4j642w46x", "PHID-USER-chrmc
ih5qjpx5buo7vx6", "PHID-USER-oetk6bbl6omm354ejz3b", "PHID-USER-hgn5uw2jafgjgfvxibhh"], "status": "open", "statusName": "Open", "isClosed": false, "priority": "Normal",
"priorityColor": "orange", "title": "Reimport ODNS", "description": "DNS repo got stuck. Need [[ https://secure.phabricator.com/rP9b21274138cfec7dd05e352db65550219f0c52
ee | this ]] from upstream.", "projectPHIDs": ["PHID-PROJ-lmcvtsjggzvjdy6kmqiu"], "uri": "https://phabricator.wikimedia.org/T87282", "auxiliary": {"std:maniphest:securi
ty_topic": null, "isdc:sprint:storypoints": null}, "objectName": "T87282", "dateCreated": "1421798420", "dateModified": "1424462042", "dependsOnTaskPHIDs": ["PHID-TASK-wcfwbhq5hbbxenheazal"]}
2015-02-20 19:54:04,438 - wikibugs.wb2-phab - DEBUG - get_transaction_info(87282,['PHID-XACT-TASK-hzmh45gmtjqtj7p']) = {"core:comment": {"new": null, "old": null, "comments": "No."}}
2015-02-20 19:54:04,438 - wikibugs.wb2-phab - DEBUG - {'title': 'Reimport ODNS', 'url': 'https://phabricator.wikimedia.org/T87282#1055045', 'projects': {}, 'comment': 'No.', 'user': 'Chad'}
2015-02-20 19:54:04,441 - irc3.wikibugs - DEBUG - > PRIVMSG #mediawiki-feed :^C4^B(no projects)^O: Reimport ODNS - https://phabricator.wikimedia.org/T87282#1055045 (^C10Chad^O) No.
2015-02-20 19:54:04,446 - irc3.wikibugs - DEBUG - > PRIVMSG #wikimedia-dev :^C4^B(no projects)^O: Reimport ODNS - https://phabricator.wikimedia.org/T87282#1055045 (^C10Chad^O) No.

somehow the project (gitblit-import) got lost.

Related Objects

StatusSubtypeAssignedTask
ResolvedBUG REPORTNone
Resolved bd808

Event Timeline

valhallasw raised the priority of this task from to Needs Triage.
valhallasw updated the task description. (Show Details)
valhallasw added a project: Wikibugs.
valhallasw subscribed.
bd808 changed the subtype of this task from "Task" to "Bug Report".Feb 17 2024, 8:28 PM
bd808 subscribed.

With the current codebase wikibugs2 -vv phorge --ask --start-from 6118017870098117805 generates this "useful_info" record:

{'url': 'https://phabricator.wikimedia.org/T87282#1055045', 'projects': {'Gitblit-Deprecate': {'shade': 'disabled', 'disabled': True, 'tagtype': 'flag-checkered', 'uri': 'https://phabricator.wikimedia.org/tag/gitblit-deprecate/'}}, 'user': 'demon', 'title': 'Reimport ODNS', 'comment': 'No.'}

Passing that to the irc formatter:

$ .tox/py39/bin/python3
Python 3.9.18 (main, Aug 24 2023, 18:16:58)
[Clang 15.0.0 (clang-1500.0.40.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from wikibugs2.messagebuilder import PhorgeMessageBuilder
>>> from wikibugs2.channelfilter import ChannelFilter
>>> from wikibugs2 import settings
>>> builder = PhorgeMessageBuilder()
>>> chanfilter = ChannelFilter(path=settings.IRC_CHANNELS_FILE)
>>> useful_info = {'url': 'https://phabricator.wikimedia.org/T87282#1055045', 'projects': {'Gitblit-Deprecate': {'shade': 'disabled', 'disabled': True, 'tagtype': 'flag-checkered', 'uri': 'https://phabricator.wikimedia.org/tag/gitblit-deprecate/'}}, 'user': 'demon', 'title': 'Reimport ODNS', 'comment': 'No.'}
>>> channels = chanfilter.channels_for({project: None for project in useful_info["projects"]})
>>> for chan, matched_projects in channels.items():
...     useful_info["channel"] = chan
...     useful_info["matched_projects"] = matched_projects
...     builder.build_message(useful_info)
...
'\x0314Gitblit-Deprecate\x0f: Reimport ODNS - https://phabricator.wikimedia.org/T87282#1055045 (\x0310demon\x0f) No.'
'\x0314Gitblit-Deprecate\x0f: Reimport ODNS - https://phabricator.wikimedia.org/T87282#1055045 (\x0310demon\x0f) No.'
>>>