Page MenuHomePhabricator

Akangupt (Akanksha Gupta)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Wednesday

  • Clear sailing ahead.

User Details

User Since
Oct 6 2015, 5:08 PM (214 w, 6 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Akangupt [ Global Accounts ]

Recent Activity

Nov 12 2015

Akangupt updated the task description for T117167: Outreachy proposal for Technology to transclude git content into wiki pages.
Nov 12 2015, 6:27 AM · Web-APIs-Hub, MediaWiki-Documentation, Documentation, Outreachy-Round-11
Akangupt added a comment to T117167: Outreachy proposal for Technology to transclude git content into wiki pages.

1 .

I think line numbers are a useful way to specify a snippet. The wiki editor should use them with an unchanging commit (otherwise the file contents change)

First case: One idea is that we don't update these snippets as they are coming from a fixed commit (not from master) hence we don't need any update mechanism for these types of cases.
Second case: If we need to update them as this is the motto of the project then I am not sure how to find a simple and safe solution to update such snippets. I tried to use one in my previous project proposal as:

Idea is to maintain a mapping/database of source (git-doc), destination (wiki-page), commit-id (from which the content is taken), start line number (The start line number from where the content was pulled) and end line number (The end line number till where content was pulled). After any commit in the corresponding file, check the difference between the content of git-doc between the start line and end line of commit-id (saved in mapping) and the content of git-doc between start line and end line patterns in the most recent commit.
( Why patterns? : It might be the case that start line and end line numbers get modified after the most recent commit. By comparing the content using the line numbers might give a false information. Hence, the solution is to search for the pattern, which are present at git-doc' start line and at end line (for the saved commit-id in mapping), in the most recent commit.)
If a difference is reported by above comparison then previously saved commit-id, start line and end line will be replaced by present commit-id, start line and end line number.

But it uses a database and a complex approach.
Which one is good to proceed with?
2 .

Your step 2.

Idea is to maintain a mapping/database of source (git-doc) and destination (wiki-page) and adding a post commit hook which triggers the update remotely from Jenkins.

is interesting. If the wikipage is pulling in HEAD, then depending on caching the page will remain the same even when git updates. I don't know how much caching the parser cache and page cache do. If it's only cached for a day or so and editors can force new contents with ?action=purge, then maybe we don't need this complicated dependency handling.

Nov 12 2015, 4:44 AM · Web-APIs-Hub, MediaWiki-Documentation, Documentation, Outreachy-Round-11

Nov 11 2015

Akangupt updated the task description for T117167: Outreachy proposal for Technology to transclude git content into wiki pages.
Nov 11 2015, 1:52 PM · Web-APIs-Hub, MediaWiki-Documentation, Documentation, Outreachy-Round-11
Akangupt added a comment to P2218 Convert hooks.txt to YAML format for T115338.

Thanks, @Spage :)
Updated.

Nov 11 2015, 9:28 AM · Documentation, MediaWiki-Documentation
Akangupt edited P2218 Convert hooks.txt to YAML format for T115338.
Nov 11 2015, 9:25 AM · Documentation, MediaWiki-Documentation

Nov 6 2015

Akangupt updated the task description for T117167: Outreachy proposal for Technology to transclude git content into wiki pages.
Nov 6 2015, 1:39 PM · Web-APIs-Hub, MediaWiki-Documentation, Documentation, Outreachy-Round-11

Nov 3 2015

Akangupt added a comment to P2218 Convert hooks.txt to YAML format for T115338.

Now, script handles the tabs too. It searches for the tabs and replaces with four spaces.

Nov 3 2015, 4:53 PM · Documentation, MediaWiki-Documentation
Akangupt edited P2218 Convert hooks.txt to YAML format for T115338.
Nov 3 2015, 4:45 PM · Documentation, MediaWiki-Documentation
Akangupt added a comment to P2252 Change to Git2Pages PullContentFromRepo function to work inside syntax highlighting.

As I haven't written any code which uses these tags (nowiki, pre etc.) hence, sorry for asking naive questions.

return array( $output, 'nowiki' => false, 'noparse' => true, 'isHTML' => false );

Will it work for text files also? Will nowiki => false not mess with text files?

Nov 3 2015, 4:07 PM
Akangupt added a comment to T117167: Outreachy proposal for Technology to transclude git content into wiki pages.

Please clarify the time zone for the hours in the profile.

Nov 3 2015, 5:26 AM · Web-APIs-Hub, MediaWiki-Documentation, Documentation, Outreachy-Round-11

Nov 2 2015

Akangupt added a comment to P2218 Convert hooks.txt to YAML format for T115338.

there should be some instructions in a comment at the beginning of the file ("place this script in the doc/ directory of MediaWiki and run it" or something like that).

So, are we planning to place the script in core?

IMO the preamble would be more readable if even empty lines were commented out.

I have edited the script to comment out the empty lines. But as discussed here tabs need to be converted to spaces in hooks.txt. Hence, I will upload the hooks.yaml after I get updated hooks.txt.
Should I submit a patch for updated hooks.txt or wait for one?

Nov 2 2015, 11:40 AM · Documentation, MediaWiki-Documentation
Akangupt edited P2218 Convert hooks.txt to YAML format for T115338.
Nov 2 2015, 11:14 AM · Documentation, MediaWiki-Documentation
daniel awarded T117167: Outreachy proposal for Technology to transclude git content into wiki pages a Like token.
Nov 2 2015, 10:40 AM · Web-APIs-Hub, MediaWiki-Documentation, Documentation, Outreachy-Round-11

Oct 31 2015

Akangupt added a comment to T91626: Technology to transclude git content into wiki pages.
Oct 31 2015, 4:32 AM · Outreach-Programs-Projects, Documentation, MediaWiki-Documentation

Oct 30 2015

Akangupt updated the task description for T117167: Outreachy proposal for Technology to transclude git content into wiki pages.
Oct 30 2015, 9:45 AM · Web-APIs-Hub, MediaWiki-Documentation, Documentation, Outreachy-Round-11
Akangupt moved T117167: Outreachy proposal for Technology to transclude git content into wiki pages from Backlog to Proposals Submitted on the Outreachy-Round-11 board.
Oct 30 2015, 7:31 AM · Web-APIs-Hub, MediaWiki-Documentation, Documentation, Outreachy-Round-11
Akangupt created T117167: Outreachy proposal for Technology to transclude git content into wiki pages.
Oct 30 2015, 5:43 AM · Web-APIs-Hub, MediaWiki-Documentation, Documentation, Outreachy-Round-11

Oct 28 2015

Akangupt added a comment to T91626: Technology to transclude git content into wiki pages.

It can provide source code to the <source> tag or parser function to transclude highlighted source code into the page.

Oct 28 2015, 9:14 AM · Outreach-Programs-Projects, Documentation, MediaWiki-Documentation

Oct 23 2015

Akangupt added a comment to T115388: Convert hooks.txt to YAML [Outreachy microtask].

Here is the script for this task P2218 and corresponding yaml file

.

Oct 23 2015, 4:51 AM · Patch-For-Review, MediaWiki-Documentation, Documentation

Oct 22 2015

Akangupt edited P2218 Convert hooks.txt to YAML format for T115338.
Oct 22 2015, 5:59 PM · Documentation, MediaWiki-Documentation
Akangupt added a comment to T115388: Convert hooks.txt to YAML [Outreachy microtask].

I have written a PHP script which coverts a text file in a yaml format. Please find the attached hooks.yaml (

), which I got after running my script. Does this look good?

Oct 22 2015, 4:31 AM · Patch-For-Review, MediaWiki-Documentation, Documentation

Oct 8 2015

Akangupt removed a member for good first bug: Akangupt.
Oct 8 2015, 6:10 PM
Akangupt added a watcher for good first bug: Akangupt.
Oct 8 2015, 5:12 AM
Akangupt added a member for good first bug: Akangupt.
Oct 8 2015, 5:11 AM
Akangupt added a comment to T91626: Technology to transclude git content into wiki pages.

So, first I should start working on T114719: Convert Git2Pages to use extension registration? Thanks.

Oct 8 2015, 4:27 AM · Outreach-Programs-Projects, Documentation, MediaWiki-Documentation

Oct 6 2015

Akangupt added a comment to T91626: Technology to transclude git content into wiki pages.

I find this project very interesting and like to propose for the Outreachy internship program. What would be the next step?
Do I need to do the second step "create a new Phabricator task for your proposal" as mentioned on https://www.mediawiki.org/wiki/Outreachy/Round_11#Candidates . Thanks.

Oct 6 2015, 5:31 PM · Outreach-Programs-Projects, Documentation, MediaWiki-Documentation