- Notifications
You must be signed in to change notification settings - Fork14
Commit013eeb1
Make /patch/{id} the URL for a patch
Previously we'd include the ID of the commitfest in the URL of thepatch. In9f12a5e we introduced a stable URL for patches that wouldredirect to the one for the latest commitfest. This starts to use thatURL as the valid only URL for a patch (with the previous URL redirectingto this one).The reasoning behind this is that the old approach resulted in Ndifferent URLs for each patch, which all showed the exact same patchinformation. The only difference between all these URLs would be thebreadcrumb at the top of the page.The only benefit of that approach is that if you're on an oldcommitfest, and click a link there, then the breadcrumb will bring youback to where you came from. Since people rarely have a reason to browseclosed commitfests, the that benefit seems pretty small. Especiallybecause people can just as well press their browser back button, in thatcase.The problems that these N links cause seem much more impactful to mostusers:1. If you click an old link to a cf entry (e.g. one from an email in the archives), then the breadcrumb will contain some arbitrarily old commitfest. It seems much more useful to have the breadcrumb show the commitfest that the patch is currently active in (or got committed/rejected in).2. If you arrive on such an old link you also won't be able to change the status. Instead you'd get a message like: "The status of this patch cannot be changed in this commitfest. You must modify it in the one where it's open!". Which requires you to go to the latest page.3. Places that use the stable URLs require an extra round-trip to actually get to the patch page.4. It's a bit confusing that old pages of a patch still get updated with all the new information, i.e. why have all these pages if they contain the exact same content.5. Problem 3 is generally also bad for Search Engine Optimization (SEO), for now we don't care much about that though.Finally this also changes the links on the patch page itself for each ofthe commitfests that a patch has been part of. Those links were alreadyrather useless, since all they effectively did was change thebreadcrumb. But with this new commit, they wouldn't even do that anymore,and simply redirect to the current page. So now they start pointing tothe commitfest itself, which seems more useful behaviour anyway.Co-Authored-By: Jacob Brazeal <jacob.brazeal@scale.com>1 parentd54c83a commit013eeb1
File tree
6 files changed
+71
-66
lines changed- pgcommitfest
- commitfest
- templates
6 files changed
+71
-66
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 |
| |
126 | 129 |
| |
127 | 130 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
| 88 | + | |
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + |
Lines changed: 47 additions & 52 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 |
| - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
328 | 327 |
| |
329 | 328 |
| |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
334 | 335 |
| |
335 | 336 |
| |
336 | 337 |
| |
| |||
373 | 374 |
| |
374 | 375 |
| |
375 | 376 |
| |
376 |
| - | |
377 |
| - | |
378 |
| - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
379 | 380 |
| |
380 | 381 |
| |
381 | 382 |
| |
| |||
431 | 432 |
| |
432 | 433 |
| |
433 | 434 |
| |
434 |
| - | |
| 435 | + | |
435 | 436 |
| |
436 | 437 |
| |
437 | 438 |
| |
| |||
465 | 466 |
| |
466 | 467 |
| |
467 | 468 |
| |
468 |
| - | |
469 |
| - | |
| 469 | + | |
470 | 470 |
| |
| 471 | + | |
471 | 472 |
| |
472 | 473 |
| |
473 | 474 |
| |
474 |
| - | |
475 |
| - | |
476 |
| - | |
477 |
| - | |
478 |
| - | |
479 |
| - | |
480 |
| - | |
481 |
| - | |
482 |
| - | |
483 | 475 |
| |
484 | 476 |
| |
485 | 477 |
| |
| |||
562 | 554 |
| |
563 | 555 |
| |
564 | 556 |
| |
565 |
| - | |
566 |
| - | |
567 |
| - | |
568 |
| - | |
569 |
| - | |
570 |
| - | |
571 |
| - | |
572 |
| - | |
573 |
| - | |
574 |
| - | |
575 |
| - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
576 | 561 |
| |
577 | 562 |
| |
578 | 563 |
| |
| |||
592 | 577 |
| |
593 | 578 |
| |
594 | 579 |
| |
595 |
| - | |
| 580 | + | |
596 | 581 |
| |
597 | 582 |
| |
598 | 583 |
| |
599 | 584 |
| |
600 |
| - | |
601 |
| - | |
602 |
| - | |
603 |
| - | |
604 |
| - | |
605 |
| - | |
606 |
| - | |
607 |
| - | |
608 |
| - | |
609 |
| - | |
610 |
| - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
611 | 603 |
| |
612 | 604 |
| |
613 | 605 |
| |
| |||
695 | 687 |
| |
696 | 688 |
| |
697 | 689 |
| |
698 |
| - | |
699 |
| - | |
| 690 | + | |
700 | 691 |
| |
701 | 692 |
| |
702 | 693 |
| |
| |||
715 | 706 |
| |
716 | 707 |
| |
717 | 708 |
| |
718 |
| - | |
719 | 709 |
| |
720 | 710 |
| |
721 | 711 |
| |
| |||
740 | 730 |
| |
741 | 731 |
| |
742 | 732 |
| |
743 |
| - | |
744 |
| - | |
| 733 | + | |
745 | 734 |
| |
746 | 735 |
| |
747 | 736 |
| |
| |||
754 | 743 |
| |
755 | 744 |
| |
756 | 745 |
| |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
757 | 752 |
| |
758 | 753 |
| |
759 | 754 |
| |
|
Lines changed: 17 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 |
| |
42 | 49 |
| |
43 | 50 |
| |
|
0 commit comments
Comments
(0)