Migrate or remove code samples under /samples/ dir

NEW
Unassigned

Status

4 years ago
18 days ago

People

(Reporter: fscholz, Unassigned)

Tracking

(Depends on: 3 bugs, Blocks: 2 bugs)

Details

(Whiteboard: [specification][type:bug])

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
What did you do?
================
1. Saw a page linking to https://developer.mozilla.org/samples/domref/mozGetAsFile.html

What happened?
==============
Can't edit or remove it, because it is a static file on the server. I don't have access to it.

Outdated code samples, which we can't maintain, are bad.

What should have happened?
==========================
It should have been a (live) sample code on the MDN page.


Is there anything else we should know?
======================================
Can we get a list of the directories and files please?

The plan is probably to migrate or remove them from where they are now and put them on MDN directly.
(Reporter)

Comment 2

4 years ago
Thanks Luke!

I will probably file some sub bugs to migrate the files into the relevant Canvas/CSS/DOM/XUL content areas. Although, I guess XUL migration won't happen as we don't maintain those docs at the moment.

Do we have traffic or access data for these directories/files?
Flags: needinfo?(lcrouch)
(Reporter)

Updated

4 years ago
Depends on: 1078186
Hmm ... no, we don't. :(

We track clicks to *external* links, but since these URLs are at "developer.mozilla.org" we don't measure them.

Do we need to measure them to do this cleanup?
Flags: needinfo?(lcrouch) → needinfo?(fscholz)
(Reporter)

Comment 4

4 years ago
It would be better, I think. 

We can't just delete stuff, if there is a ton of people accessing them. Once we remove links to those static resources from our wiki content, traffic should go down there. If it is still too high after a while, we also need to create redirects probably.
Flags: needinfo?(fscholz)
Depends on: 1078676
(Reporter)

Updated

4 years ago
Blocks: 1075269
(Reporter)

Updated

4 years ago
Blocks: 955938
(Reporter)

Comment 6

3 years ago
(In reply to Luke Crouch [:groovecoder] from comment #1)
> https://pastebin.mozilla.org/6691078

Luke, this pastebin is now empty. Can you please attach a list of the directories and files under /samples/ to this bug please? Thanks!
Flags: needinfo?(lcrouch)
(Reporter)

Updated

3 years ago
Depends on: 1215255
Created attachment 8676932 [details]
2015-10-21-samples-contents.txt
Flags: needinfo?(lcrouch)
(Reporter)

Updated

3 years ago
Depends on: 1226611
(Reporter)

Updated

3 years ago
Blocks: 1232167
Blocks: 1110801
Depends on: 1288157
(Reporter)

Updated

4 months ago
Blocks: 1457818

Updated

18 days ago
Depends on: 1398923
You need to log in before you can comment on or make changes to this bug.