-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor document types #90
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll improve the copywriting on the CONTRIBUTING 🙂
Congrats for the tryptic descriptions, I personally find them very clear and useful!
I love how simpler this all becomes after unifying file name, ID and name! 😃
package.json
Outdated
"start:scheduler": "node schedule.js", | ||
"start:scheduler:prod": "NODE_ENV=production node schedule.js", | ||
"setup": "node scripts/setup.js", | ||
"start": "node --experimental-json-modules index.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer that we use createRequire
when needed, as recommended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see where it's recommended.
They recommend to use createRequire instead of --experimental-modules
but here I use --experimental-json-modules
and about this one, they said:
A separate flag --experimental-json-modules enables experimental support for import of JSON files. There is work in progress for standardizing this feature with browsers, and Node.js hopes to align our support with the eventual standard.
Do you still prefer recreating the require function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moreover, --experimental-json-modules
is only required for the npm run validate
command as we remove the TYPES
import from all others files. (I just have to remove this instruction from other commands)
So the experimental feature won't affect the production scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see where it's recommended.
You're right, I'm sorry, the second paragraph you mentioned does add details to the initial statement.
Do you still prefer recreating the require function?
Yes, considering the stage of advancement of the standardisation for JSON modules (see whatwg/html#4315), I would feel much safer relying on a stable API rather than a flag whose behavior is less specified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay :)
src/types.json
Outdated
"object": "API and Content usage" | ||
} | ||
}, | ||
"Developer Policy": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference with Developer Agreement
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find one. But Twitter define both.
If you can explain the difference:
https://developer.twitter.com/fr/developer-terms/agreement
https://developer.twitter.com/fr/developer-terms/policy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
I feel that the “agreement” is a full, legally binding contract, whereas the “policy” describes what Twitter expects and how it can be expected to behave.
I find this separation very interesting, but a bit uncommon as well.
I see two options, in order of preference:
- Rewrite the
object
of the Developer Policy as “expected behavior of and towards third-party services”. - Stop tracking the Developer Policy for Twitter as of now, since we'll need to cover the specific case of Twitter and its multitude of documents in some special way anyway.
I'll let you decide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we keep both, which one will you use for theses documents?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, it's a mess 🙃
In favor of option 2 then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, if we keep one, which one do you prefer, "Developer Terms", "Developer Policy", "Developer Agreement"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“Policy” seems more common, isn't it? Otherwise I'd say “Developer Terms”, by similarity with “Terms of Service“.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I also found that "Policy" seems more common but as you explained for Twitter where “agreement” is a full, legally binding contract, whereas the “policy” describes what Twitter expects and how it can be expected to behave, "agreement" seems to be more in line with what we want.
Another point, if we keep "Policy", for Twitter the url is not the one which target Twitter Policy but this one "https://developer.twitter.com/developer-terms/agreement" which target the agreement.
So, even if "Developer Terms" seems less common, I think it avoids confusion while still being very understandable (and similar with “Terms of Service“ as you said), so I vote for this one.
Great :)
Totally! 😃 |
@michielbdejong What do you think about this document types refactor? |
155b9a5
to
a4ba8ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
a4ba8ad
to
4ef1ace
Compare
4ef1ace
to
93a0502
Compare
Controller-Controller Data Protection Terms -> Data Controller Agreement Data Processing Terms -> Data Processor Terms Copyright Policy -> Copyright Claims Policy
Move Parent Organization Terms below more common types
9ee8264
to
c780786
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rewrote GDPR-related tryptics. LGTM now!
I did not execute the code.
Great! So far we haven't used document type strictly in tosback.org, nor in tosdr.org, so I'll probably keep a crawler running somewhere that also crawls "other" documents that don't fit in this more structured list of documents by type by service. But I'll try to assign one of the new document types to each one! Maybe that can also be part of the user interface of edit.tosdr.org, so volunteers can do this work. |
No description provided.