View Issue Details

IDProjectCategoryView StatusLast Update
0000238My infrastructureGeneralpublic2024-07-01 18:37
Reporterdvl Assigned Todvl  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0000238: What is the wlc table?
DescriptionI've seen it on a few FreshPorts databases.
TagsNo tags attached.

Activities

dvl

2024-07-01 18:07

manager   ~0000284

Nothing in here:

[18:07 pg03 dvl ~] % cd src/freshports/database-schema
[18:07 pg03 dvl ~/src/freshports/database-schema] % grep wlc *
[18:07 pg03 dvl ~/src/freshports/database-schema] % 

dvl

2024-07-01 18:07

manager   ~0000285

Nothing in web:

[18:07 dvl-nginx01 dvl ~/www] % grep -r wlc *
grep: configuration/freshports.net.conf: No such file or directory
grep: configuration/status-config.php: No such file or directory
[18:07 dvl-nginx01 dvl ~/www] % 

dvl

2024-07-01 18:08

manager   ~0000286

Nothing in ingress:

[18:07 dvl-ingress01 dvl ~] % grep -r wcl ~/scripts ~/modules 
grep: /usr/home/dvl/modules/config.pm: Permission denied
[18:08 dvl-ingress01 dvl ~] % 

dvl

2024-07-01 18:08

manager   ~0000287

Nothing at https://news.freshports.org/ either....

dvl

2024-07-01 18:10

manager   ~0000288

I suspect wlc = watch list count : How many people are watching this port.

                          name                          |   category    | wlc 
--------------------------------------------------------+---------------+-----
 0ad                                                    | games         |   3
 0d1n                                                   | security      |   0
 0verkill                                               | games         |   6
 1password-client                                       | security      |   1
 2048                                                   | games         |   0
...

dvl

2024-07-01 18:25

manager   ~0000289

The value on the port page is calculated by this function:


CREATE OR REPLACE FUNCTION watch_list_count(integer) RETURNS bigint
    AS $$
  SELECT count(*) 
    FROM watch_list_element
   WHERE element_id = $1;
$$
    LANGUAGE sql STABLE;


This is invoked by classes/ports.php by the function WatchListCount()

Which is invoked by classes/port-display.php within Display()

dvl

2024-07-01 18:25

manager   ~0000290

I'm concluding this table can be deleted....

Let's wait a few days after I've change the permissions.

Issue History

Date Modified Username Field Change
2024-07-01 18:06 dvl New Issue
2024-07-01 18:07 dvl Note Added: 0000284
2024-07-01 18:07 dvl Note Added: 0000285
2024-07-01 18:08 dvl Note Added: 0000286
2024-07-01 18:08 dvl Note Added: 0000287
2024-07-01 18:10 dvl Note Added: 0000288
2024-07-01 18:25 dvl Note Added: 0000289
2024-07-01 18:25 dvl Note Added: 0000290
2024-07-01 18:37 dvl Assigned To => dvl
2024-07-01 18:37 dvl Status new => assigned