From edf89cf7397b3c17533a8322ebdbf6304ccf04d4 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 10 Sep 2015 01:42:52 +0200 Subject: [PATCH] there is no privacy to attribute to any circle, they all are private, that's all. --- NpgsqlContentProvider/ChangeLog | 4 ++++ NpgsqlContentProvider/NpgsqlCircleProvider.cs | 5 +---- web/ChangeLog | 4 ++++ web/instdbws.sql | 2 -- yavscModel/ChangeLog | 4 ++++ yavscModel/Circles/CircleBase.cs | 5 ----- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/NpgsqlContentProvider/ChangeLog b/NpgsqlContentProvider/ChangeLog index 3a67cf0e..49aee005 100644 --- a/NpgsqlContentProvider/ChangeLog +++ b/NpgsqlContentProvider/ChangeLog @@ -1,3 +1,7 @@ +2015-09-10 Paul Schneider + + * NpgsqlCircleProvider.cs: + 2015-09-10 Paul Schneider * NpgsqlCircleProvider.cs: * refactoring diff --git a/NpgsqlContentProvider/NpgsqlCircleProvider.cs b/NpgsqlContentProvider/NpgsqlCircleProvider.cs index 8ed18843..d763c218 100644 --- a/NpgsqlContentProvider/NpgsqlCircleProvider.cs +++ b/NpgsqlContentProvider/NpgsqlCircleProvider.cs @@ -47,11 +47,9 @@ namespace WorkFlowProvider cnx.Open (); using (NpgsqlCommand cmd = cnx.CreateCommand ()) { cmd.CommandText = "update circle " + - "set title = :title, " + - "isprivate = :pv " + + "set title = :title " + "where _id = :cid "; cmd.Parameters.AddWithValue ("title", c.Title); - cmd.Parameters.AddWithValue ("pv", c.IsPrivate); cmd.Parameters.AddWithValue ("cid", c.Id); cmd.ExecuteNonQuery (); } @@ -80,7 +78,6 @@ namespace WorkFlowProvider dr.GetOrdinal ("title")); circ.Owner = dr.GetString ( dr.GetOrdinal ("owner")); - circ.IsPrivate = !dr.GetBoolean (dr.GetOrdinal ("public")); } dr.Close (); diff --git a/web/ChangeLog b/web/ChangeLog index 81ea81e5..b439efc4 100644 --- a/web/ChangeLog +++ b/web/ChangeLog @@ -1,3 +1,7 @@ +2015-09-10 Paul Schneider + + * instdbws.sql: + 2015-09-10 Paul Schneider * yavsc.js: diff --git a/web/instdbws.sql b/web/instdbws.sql index f75636e7..2b3c7ba7 100644 --- a/web/instdbws.sql +++ b/web/instdbws.sql @@ -658,7 +658,6 @@ CREATE TABLE circle owner character varying(255) NOT NULL, -- creator of this circle applicationname character varying(255) NOT NULL, -- Application name title character varying(512) NOT NULL, - public boolean DEFAULT false, -- true when this circle is a public circle, from which the title would be available from an anonymous access to the owner's profile CONSTRAINT circle_pkey PRIMARY KEY (_id), CONSTRAINT circle_owner_fkey FOREIGN KEY (owner, applicationname) REFERENCES users (username, applicationname) MATCH SIMPLE @@ -673,7 +672,6 @@ ALTER TABLE circle COMMENT ON COLUMN circle._id IS 'Circle identifier'; COMMENT ON COLUMN circle.owner IS 'creator of this circle'; COMMENT ON COLUMN circle.applicationname IS 'Application name'; -COMMENT ON COLUMN circle.public IS 'true when this circle is a public circle, from which the title would be available from an anonymous access to the owner''s profile'; -- Table: circle_members diff --git a/yavscModel/ChangeLog b/yavscModel/ChangeLog index c68eaa8a..878567ee 100644 --- a/yavscModel/ChangeLog +++ b/yavscModel/ChangeLog @@ -1,3 +1,7 @@ +2015-09-10 Paul Schneider + + * CircleBase.cs: + 2015-09-10 Paul Schneider * CircleBase.cs: The Circle base diff --git a/yavscModel/Circles/CircleBase.cs b/yavscModel/Circles/CircleBase.cs index 7169c4fa..aba8f55f 100644 --- a/yavscModel/Circles/CircleBase.cs +++ b/yavscModel/Circles/CircleBase.cs @@ -46,11 +46,6 @@ namespace Yavsc.Model.Circles /// The title. public string Title { get; set; } - /// - /// Gets or sets a value indicating whether this instance is private. - /// - /// true if this instance is private; otherwise, false. - public bool IsPrivate { get; set; } } }