Update coding guidelines (documenting new scripting functions) #1938
Unanswered
Dutchman101
asked this question in
Ideas
Replies: 2 comments 1 reply
-
I agree on that, but I don't like the fact a wiki page exists for a non existing (yet) function. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ups yeah, I've somehow skipped it, my bad. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea
We should formalize that PR's with new scripting functions won't be merged, until the PR author created a scripting wiki page for it.. those pages should be separated from other content (not on overviews and tagged
WIP
) until date of merge.For a long time it's been said to be, and loosely applied as, coding guidelines but it's missing from the coding guidelines so after working it out, we should add it there so there'll be no misunderstandings and no growing list of undocumented functions.
The past has learned that telling contributors adding the wiki page is their responsibility, won't always cut it.. sometimes it won't be done, or at least not before someone else random takes interest in doing it. It's a shame, because we risk entire functions going to waste because without documentation on the scripting wiki, no one will use them.
After implementing such a policy change, we should change our Github practises to reflect it - bottom line will be making it a check that is required to complete before a PR can be merged. So we could do one of the following:
Even if documenting their new function is primarily the PR author's responsibility, obviously anyone else that likes to do it can still take care of it for them. But also then, it simply has to happen in advance of the merge, to avoid problems of there being no prospect of it being done.
If this discussion leads to a policy update, afterwards it can also be worth running an automated script (once) to get all scripting functions that exist from MTA sourcecode, and then verifies if all of them are on the wiki. So we can catch up to accumulated undocumented functions from the past.
Beta Was this translation helpful? Give feedback.
All reactions